mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-30 21:18:34 +00:00
Fix compilation when ENABLE_DEVMODE is defined
This commit is contained in:
parent
c42c5e1453
commit
4a5a3a7bc4
@ -636,8 +636,8 @@ bool CustomizedGuiManager::onProcessDevModeKeyDown(KeyMessage* msg)
|
||||
if (msg->ctrlPressed() &&
|
||||
msg->scancode() == kKeyF1) {
|
||||
try {
|
||||
os::Display* display = getDisplay();
|
||||
int screenScale = display->scale();
|
||||
os::Window* window = display();
|
||||
int screenScale = window->scale();
|
||||
int uiScale = ui::guiscale();
|
||||
|
||||
if (msg->shiftPressed()) {
|
||||
@ -672,9 +672,8 @@ bool CustomizedGuiManager::onProcessDevModeKeyDown(KeyMessage* msg)
|
||||
if (uiScale != ui::guiscale()) {
|
||||
ui::set_theme(ui::get_theme(), uiScale);
|
||||
}
|
||||
if (screenScale != display->scale()) {
|
||||
display->setScale(screenScale);
|
||||
setDisplay(display);
|
||||
if (screenScale != window->scale()) {
|
||||
updateAllDisplaysWithNewScale(screenScale);
|
||||
}
|
||||
}
|
||||
catch (const std::exception& ex) {
|
||||
|
Loading…
Reference in New Issue
Block a user