From 20437d4b149b00157a4cbed1819ea74b032ed6fa Mon Sep 17 00:00:00 2001 From: Paul Broadhead Date: Sun, 27 Nov 2016 15:21:31 +0000 Subject: [PATCH] Position new charater text near icons relative to icon size. --- new_character.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/new_character.c b/new_character.c index a04e36c7c..4cb8590ca 100644 --- a/new_character.c +++ b/new_character.c @@ -20,6 +20,7 @@ #include "gl_init.h" #include "global.h" #include "hud.h" +#include "icon_window.h" #include "init.h" #include "interface.h" #include "lights.h" @@ -517,8 +518,8 @@ int display_newchar_handler (window_info *win) glColor3f(251/255.0f, 250/255.0f, 190/255.0f); #ifdef NEW_NEW_CHAR_WINDOW - draw_string_small(68, win->len_y-hud_y+15, (unsigned char*)zoom_in_out, 1); - draw_string_small(68, win->len_y-hud_y+32, (unsigned char*)rotate_camera, 1); + draw_string_small(get_icons_win_active_len() + 2, win->len_y-hud_y+15, (unsigned char*)zoom_in_out, 1); + draw_string_small(get_icons_win_active_len() + 2, win->len_y-hud_y+32, (unsigned char*)rotate_camera, 1); #else draw_string_small(132, win->len_y-hud_y+15, (unsigned char*)zoom_in_out, 1); draw_string_small(132, win->len_y-hud_y+32, (unsigned char*)rotate_camera, 1);