mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-21 10:04:18 +00:00
dcc912d317
4602: Fix windows macro and split the resize events r=def- a=Jupeyy I noticed that the resize backend used the wrong macros `CONF_PLATFORM_WINDOWS` instead `CONF_FAMILY_WINDOWS`(windows seems to be the only one in detect.h that splits platform between 32bit and 64bit, maybe we should change that) maybe this fixes #4351, because actually the workaround for windows was exactly inside the wrong macro to fix resizing in fullscreen. I also split the resize functions, so its less confusing Resize (actively resize in the resolution list) vs GotResized (reported by SDL) and made some things a bit clearer ## Checklist - [x] Tested the change ingame - [ ] Provided screenshots if it is a visual change - [ ] Tested in combination with possibly related configuration options - [ ] Written a unit test if it works standalone, system.c especially - [ ] Considered possible null pointers and out of bounds array indexing - [ ] Changed no physics that affect existing maps - [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional) Co-authored-by: Jupeyy <jupjopjap@gmail.com> |
||
---|---|---|
.. | ||
components | ||
prediction | ||
animstate.cpp | ||
animstate.h | ||
component.cpp | ||
component.h | ||
gameclient.cpp | ||
gameclient.h | ||
lineinput.cpp | ||
lineinput.h | ||
projectile_data.cpp | ||
projectile_data.h | ||
race.cpp | ||
race.h | ||
render.cpp | ||
render.h | ||
render_map.cpp | ||
skin.h | ||
ui.cpp | ||
ui.h | ||
ui_ex.cpp | ||
ui_ex.h |