Skip to content

Commit

Permalink
don't do manual dpi compensation
Browse files Browse the repository at this point in the history
  • Loading branch information
redthing1 committed Jul 13, 2024
1 parent a346263 commit 9c514cd
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions source/re/core.d
Original file line number Diff line number Diff line change
Expand Up @@ -365,18 +365,20 @@ abstract class Core {
}
}

version (OSX) {
// on macOS, we don't need to do manual hidpi compensation, because it is done transparently by the window manager
return;
}
version (Windows) {
// windows does require manual hidpi compensation
manual_hidpi_compenate();
}
version (linux) {
// linux does require manual hidpi compensation
manual_hidpi_compenate();
}
// we will no longer do manual hidpi compensation
// version (OSX) {
// // on macOS, we don't need to do manual hidpi compensation, because it is done transparently by the window manager
// return;
// }
// version (Windows) {
// // // windows does require manual hidpi compensation
// // manual_hidpi_compenate();
// return;
// }
// version (linux) {
// // linux does require manual hidpi compensation
// manual_hidpi_compenate();
// }
}

private void handle_window_resize() {
Expand Down

0 comments on commit 9c514cd

Please sign in to comment.