1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:57:42 +00:00

PixelPaint: Use better-fitting image size

This makes the default image fit perfectly into the default viewport,
which means the first fit_image_to_view call will end up with a scale of
exactly 1. This scale level has no visual artifacts, which is the more
intuitive 'default' behavior.

Fixes #10975.
This commit is contained in:
Ben Wiederhake 2021-11-21 15:31:52 +01:00 committed by Andreas Kling
parent 177478dadf
commit afc456edd6
2 changed files with 3 additions and 3 deletions

View file

@ -72,8 +72,8 @@ CreateNewImageDialog::CreateNewImageDialog(GUI::Window* parent_window)
width_spinbox.set_range(1, 16384);
height_spinbox.set_range(1, 16384);
width_spinbox.set_value(480);
height_spinbox.set_value(360);
width_spinbox.set_value(510);
height_spinbox.set_value(356);
}
}