Skip to content

Commit

Permalink
Don't call SDL_SetWindowSize again when resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
rollerozxa committed Oct 4, 2023
1 parent 785c7da commit 273fc47
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/tms/backends/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,8 @@
ev.window.data2); \
int w = ev.window.data1; \
int h = ev.window.data2; \
\
if (w < 64) w = 64; \
if (h < 64) h = 64; \
\
_tms.window_width = _tms.opengl_width = w; \
_tms.window_height = _tms.opengl_height = h; \
\
SDL_SetWindowSize(_window, _tms.window_width, _tms.window_height); \
\
tproject_window_size_changed();

0 comments on commit 273fc47

Please sign in to comment.