diff options
| author | Menase Teshale <osome3717@gmail.com> | 2026-09-19 12:12:31 +0300 |
|---|---|---|
| committer | Menase Teshale <osome3717@gmail.com> | 2026-09-19 12:12:31 +0300 |
| commit | af1e4f1d6c47498a590bd64428163a6b9dbca385 (patch) | |
| tree | 374e9028e45bcf960c4daf2790024482a8e72410 /src/menu.c | |
| parent | 9dfdb7df2929fcfdf5f932b2e27499d3f0e5d412 (diff) | |
Started relativising sizing and positioning
Diffstat (limited to 'src/menu.c')
| -rw-r--r-- | src/menu.c | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -17,20 +17,6 @@ sprite_font text_font; extern SDL_Window* window; extern application_state app_state; -static inline float get_window_relative_xpos(float vp) { - int width; - SDL_GetWindowSizeInPixels(window, &width, NULL); - - return width * vp; -} - -static inline float get_window_relative_ypos(float vp) { - int height; - SDL_GetWindowSizeInPixels(window, NULL, &height); - - return height * vp; -} - void init_menu(SDL_Renderer* renderer) { if (text_font.spritesheet == NULL) { load_sprite_font(renderer, |
