1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00

QuickShow: When zooming with the mouse wheel, keep image centered at cursor.

This commit is contained in:
Andreas Kling 2019-06-30 15:01:35 +02:00
parent e7ce4514ec
commit 038f99eeff
2 changed files with 8 additions and 1 deletions

View file

@ -56,7 +56,7 @@ int main(int argc, char** argv)
window->set_title(String::format("QuickShow: %s %s %d%%", path, bitmap->size().to_string().characters(), scale));
};
window->set_double_buffering_enabled(false);
window->set_double_buffering_enabled(true);
update_window_title(100);
window->set_rect(200, 200, bitmap->width(), bitmap->height());