From 8cc3cad3b0e0dba5ab9ecf610199264d47e743b8 Mon Sep 17 00:00:00 2001 From: zicodxx <> Date: Tue, 18 Nov 2008 14:43:30 +0000 Subject: [PATCH] Changed keys for Automap Viewing Distance to F9/F10 - Minus/Equal is not Layout independent --- CHANGELOG.txt | 1 + main/automap.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index c7981d3a7..0bd59f95e 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -5,6 +5,7 @@ D2X-Rebirth Changelog main/console.c: When printing Gamelog, make sure canvas is NULL main/newmenu.c, main/multi.c, main/automap.c, main/gamecntl.c, ui/inputbox.c, ui/menubar.c, arch/sdl/event.c, arch/sdl/key.c, arch/include/key.h: Yet another UNICODE overhaul - Using seperate buffer for UNICODE chars and only use it in key_ascii() while still using keysyms for the rest of the program so we do not screw up readings by key values altered by modifers - possibly still room to optimize main/gamecntl.c: Fixed cheats! +main/automap.c: Changed keys for Automap Viewing Distance to F9/F10 - Minus/Equal is not Layout independent 20081115 -------- diff --git a/main/automap.c b/main/automap.c index ca6d4df1b..caa602d9b 100644 --- a/main/automap.c +++ b/main/automap.c @@ -438,7 +438,7 @@ void draw_automap(int flip) gr_set_fontcolor(BM_XRGB(20, 20, 20), -1); gr_printf((SWIDTH/10.666), (SHEIGHT/1.126), TXT_TURN_SHIP); gr_printf((SWIDTH/10.666), (SHEIGHT/1.083), TXT_SLIDE_UPDOWN); - gr_printf((SWIDTH/10.666), (SHEIGHT/1.043), TXT_VIEWING_DISTANCE); + gr_printf((SWIDTH/10.666), (SHEIGHT/1.043), "F9/F10 Changes viewing distance"); gr_set_current_canvas(&Automap_view); @@ -664,13 +664,13 @@ void do_automap( int key_code ) { break; #endif - case KEY_MINUS: + case KEY_F9: if (SegmentLimit > 1) { SegmentLimit--; adjust_segment_limit(SegmentLimit); } break; - case KEY_EQUAL: + case KEY_F10: if (SegmentLimit < Max_segments_away) { SegmentLimit++; adjust_segment_limit(SegmentLimit);