bmx-ng / sdl.mod

SDL backend for BlitzMax
7 stars 6 forks source link

fixed: TSDLWindow::GetWindowHandle always returned null #35

Closed ProPuke closed 2 years ago

ProPuke commented 2 years ago

SDL_config.h wasn't included, so the ifdef driver checks in bmx_sdl_video_GetWindowHandle() were all skipped, resulting in a NULL return

This looks to be the only glue file in sdl.mod that needs SDL_config.h, although we might want to add it to others too just to be neat.

We should probably also put wayland checks in this function too, but no clue if that works or needs adjustments elsewhere to work (can't test that yet)