Browse Source
The static bool means there's one copy of the variable per compilation unit using the header. So changing its value in one compilation unit doesn't affect the other compilation units. This is clearly not what is wanted here. Fixing this requires adding a CPP in SourceS. This is the first one there, I hope it's not an issue. The sdl2_to_1_2_backports should only be used with SDL1 so I only include it in the list of sources for SDL1 builds. I'm not familiar with cmake so I hope I don't do anything stupid there!pull/867/head
3 changed files with 9 additions and 1 deletions
@ -0,0 +1,3 @@
|
||||
#include "sdl2_to_1_2_backports.h" |
||||
|
||||
SDL_bool SDLBackport_IsTextInputActive = SDL_FALSE; |
||||
Loading…
Reference in new issue