mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 05:14:45 +00:00
Added constraint of guiscale() value depending height of the screen.
This commit is contained in:
parent
6ebf5966c3
commit
65cb9c3517
@ -372,9 +372,13 @@ void exit_module_gui()
|
||||
remove_mouse();
|
||||
}
|
||||
|
||||
// This value is a factor to multiply every screen size/coordinate.
|
||||
// Every icon should be scaled to this factor too.
|
||||
int guiscale()
|
||||
{
|
||||
return (screen_scaling == 1 && JI_SCREEN_W > 512 ? 2: 1);
|
||||
return (screen_scaling == 1 &&
|
||||
JI_SCREEN_W > 512 &&
|
||||
JI_SCREEN_H > 256) ? 2: 1;
|
||||
}
|
||||
|
||||
Monitor::Monitor(void (*proc)(void *),
|
||||
|
Loading…
Reference in New Issue
Block a user