summaryrefslogtreecommitdiff
path: root/src/menu.c
diff options
context:
space:
mode:
authorMenase Teshale <osome3717@gmail.com>2026-09-19 12:12:31 +0300
committerMenase Teshale <osome3717@gmail.com>2026-09-19 12:12:31 +0300
commitaf1e4f1d6c47498a590bd64428163a6b9dbca385 (patch)
tree374e9028e45bcf960c4daf2790024482a8e72410 /src/menu.c
parent9dfdb7df2929fcfdf5f932b2e27499d3f0e5d412 (diff)
Started relativising sizing and positioning
Diffstat (limited to 'src/menu.c')
-rw-r--r--src/menu.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/menu.c b/src/menu.c
index 2bbc4df..4345ede 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -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,