testwm2: add mode menu, click on a mode to call SDL_SetWindowDisplayMode

This commit is contained in:
Eric Wasylishen 2021-11-07 02:48:29 -07:00 committed by Sam Lantinga
parent 70f7ebe635
commit a0e055a7f9
3 changed files with 165 additions and 7 deletions

View file

@ -215,9 +215,10 @@ void SDLTest_CommonQuit(SDLTest_CommonState * state);
*
* \param renderer The renderer to draw to.
* \param window The window whose information should be displayed.
* \param usedHeight Returns the height used, so the caller can draw more below.
*
*/
void SDLTest_CommonDrawWindowInfo(SDL_Renderer * renderer, SDL_Window * window);
void SDLTest_CommonDrawWindowInfo(SDL_Renderer * renderer, SDL_Window * window, int * usedHeight);
/* Ends C function definitions when using C++ */
#ifdef __cplusplus