Changeset b8d4456 in opengl-game for game-gui-sdl.cpp
- Timestamp:
- Jun 8, 2020, 6:49:39 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master
- Children:
- 4e705d6
- Parents:
- 4a9416a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
game-gui-sdl.cpp
r4a9416a rb8d4456 27 27 28 28 if (SDL_Init(SDL_INIT_EVERYTHING) < 0) { 29 return RTWO_ERROR;30 }31 32 int imgFlags = IMG_INIT_PNG;33 if (!(IMG_Init(imgFlags) & imgFlags)) {34 29 return RTWO_ERROR; 35 30 } … … 123 118 break; 124 119 case SDL_MOUSEMOTION: 120 event->mouse.x = e.motion.x; 121 event->mouse.y = e.motion.y; 125 122 case SDL_FINGERMOTION: 126 123 event->type = UI_EVENT_MOUSEMOTION;
Note:
See TracChangeset
for help on using the changeset viewer.