Nuklear/demo/sdl_renderer
Kristian Bolino ec4aa9992f Fix high-DPI scaling in sdl_renderer
This commit resolves two issues with high-DPI display rendering:

1. The coordinates were not scaled properly, resulting in tiny output
   and misalignment of actual cursor position with apparent position;
   this is fixed by calling SDL_SetRenderScale with appropriate scaling
   factors determined by comparing the window size to the renderer's
   output size
2. The fonts were not oversampled, resulting in excessively blurry text;
    this is fixed by setting oversample_h and oversample_v on the
    font_config according to the scaling factors
2022-03-15 11:43:31 -04:00
..
main.c Fix high-DPI scaling in sdl_renderer 2022-03-15 11:43:31 -04:00
Makefile sdl_renderer: Update code 2022-01-06 21:55:20 -05:00
nuklear_sdl_renderer.h sdl_renderer: fix Metal rendering (#426) 2022-03-15 15:28:47 +01:00