修复图片大小不正确
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user