修复图片大小不正确

This commit is contained in:
2025-03-26 22:33:41 +08:00
parent dc896d51f3
commit de33e765d4
8 changed files with 34 additions and 6 deletions

View File

@@ -31,8 +31,15 @@ int main(int argc, char* argv[]) {
auto image = std::make_shared<mimage>();
image->set_image(i);
auto hbox = std::make_shared<mh_box>();
hbox->add_child()
.auto_size()
[
image
];
const auto& window = mwindow::create({ 800, 600 }, L"Hello, World!");
window->set_content(image);
window->set_content(hbox);
mirage_app::get().run();
return 0;