Divide window safe area by gui scale
This commit is contained in:
parent
b8b00145af
commit
8ce9bd8aa3
1 changed files with 1 additions and 1 deletions
|
|
@ -2265,7 +2265,7 @@ void Toolbar::initialize_io_before_update() {
|
|||
void Toolbar::start_gui() {
|
||||
SDL_Rect windowRect;
|
||||
if(SDL_GetWindowSafeArea(main.window.sdlWindow, &windowRect)) {
|
||||
gui.windowPos = {windowRect.x, windowRect.y};
|
||||
gui.windowPos = Vector2f{windowRect.x, windowRect.y} / final_gui_scale();
|
||||
gui.windowSize = Vector2f{windowRect.w, windowRect.h} / final_gui_scale();
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue