Fix UI update when changing pixel scale pref.
This just brings the custom resize event that can be fired in line
with the change made in ac96df07be
.
This commit is contained in:
parent
eda389b28d
commit
c6d9565ed1
2 changed files with 4 additions and 1 deletions
|
@ -761,7 +761,7 @@ void raise_resize_event()
|
|||
point size = video::window_size();
|
||||
SDL_Event event;
|
||||
event.window.type = SDL_WINDOWEVENT;
|
||||
event.window.event = SDL_WINDOWEVENT_RESIZED;
|
||||
event.window.event = SDL_WINDOWEVENT_SIZE_CHANGED;
|
||||
event.window.windowID = 0; // We don't check this anyway... I think...
|
||||
event.window.data1 = size.x;
|
||||
event.window.data2 = size.y;
|
||||
|
|
|
@ -291,6 +291,9 @@ bool update_framebuffer()
|
|||
// Delete it and let it be recreated.
|
||||
LOG_DP << "destroying old render texture";
|
||||
render_texture_.reset();
|
||||
} else {
|
||||
// This isn't currently used, but ensure it's accurate anyway.
|
||||
render_texture_.set_draw_size(lsize);
|
||||
}
|
||||
}
|
||||
if (!render_texture_) {
|
||||
|
|
Loading…
Add table
Reference in a new issue