VIDEO: Fix build for platforms with SDL2 prior to v2.0.2. Fix #177
This commit is contained in:
parent
5ed1909839
commit
f0f3176c78
1 changed files with 5 additions and 1 deletions
|
@ -1513,8 +1513,12 @@ if (!initialized) {
|
|||
eventtypes[SDL_DROPFILE] = "DROPFILE"; /**< The system requests a file open */
|
||||
|
||||
/* Render events */
|
||||
#if defined(SDL_RENDER_TARGETS_RESET)
|
||||
eventtypes[SDL_RENDER_TARGETS_RESET] = "RENDER_TARGETS_RESET"; /**< The render targets have been reset */
|
||||
|
||||
#endif
|
||||
#if defined(SDL_RENDER_DEVICE_RESET)
|
||||
eventtypes[SDL_RENDER_DEVICE_RESET] = "SDL_RENDER_DEVICE_RESET"; /**< The render device has been reset */
|
||||
#endif
|
||||
/** Events ::SDL_USEREVENT through ::SDL_LASTEVENT are for your use,
|
||||
* and should be allocated with SDL_RegisterEvents()
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue