From 87bf71c8f1dfefdfc535274008f18eb9852487b3 Mon Sep 17 00:00:00 2001 From: aurhat Date: Sun, 9 Nov 2014 22:17:01 +0100 Subject: [PATCH] Change position of "SCROLL/SPACE..." HUD messages Now "SCROLL/SPACE..." messages will be visible on the right side of display, in every standard aspect ratio. --- source/src/renderhud.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/src/renderhud.cpp b/source/src/renderhud.cpp index 00ca4f72..6eeb14fe 100644 --- a/source/src/renderhud.cpp +++ b/source/src/renderhud.cpp @@ -1028,9 +1028,9 @@ void gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwat { glLoadIdentity(); glOrtho(0, VIRTW*3/2, VIRTH*3/2, 0, -1, 1); - const int left = (VIRTW*3/2)*8/11, top = (VIRTH*3/2)*3/4; - draw_textf("SPACE to change view", left, top); - draw_textf("SCROLL to change player", left, top+80); + const int left = (VIRTW)*3/2, top = (VIRTH*3/2)*3/4; + draw_textf("SPACE to change view", left - (text_width("SCROLL to change player") + FONTH/2), top); + draw_textf("SCROLL to change player", left - (text_width("SCROLL to change player") + FONTH/2), top+80); } /* * /