Immediate-Mode-UI / Nuklear

A single-header ANSI C immediate mode cross-platform GUI library
https://immediate-mode-ui.github.io/Nuklear/doc/index.html
8.89k stars 533 forks source link

Using SDL_GetWindowBordersSize() messes up everything. #593

Open cptclvtch opened 7 months ago

cptclvtch commented 7 months ago

SDL_GetWindowBordersSize() being used at main.c:12 in this repo: https://github.com/cptclvtch/HFSTS/commit/d6d761365e33d660085f52e4c745a6a545a9ef07 messes up the GUI.

Even if all other window handling is commented out in that section, the simple use of that get function messes up all of Nuklear.

RobLoach commented 7 months ago

I don't see any reference to SDL_GetWindowBordersSize() in the Nuklear repository, or any of the SDL examples.

cptclvtch commented 7 months ago

Sorry, I dont think I understand your subtext.

RobLoach commented 4 months ago

Would you want to use this one instead? https://wiki.libsdl.org/SDL2/SDL_GetWindowSize

Another option is to get the side fo the renderer instead https://wiki.libsdl.org/SDL2/SDL_GetRendererOutputSize