From 61b43672e936091fed73ea7d7ccf8dfbdb46e6ab Mon Sep 17 00:00:00 2001 From: Darkvater Date: Wed, 1 Mar 2006 20:24:22 +0000 Subject: (svn r3710) - Use the general function DrawArrowButtons() instead of doing it manually. The function has two parameters added, colour and an enabled flag. --- misc_gui.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'misc_gui.c') diff --git a/misc_gui.c b/misc_gui.c index c9d27e90b..0641f4d34 100644 --- a/misc_gui.c +++ b/misc_gui.c @@ -1791,10 +1791,8 @@ static void CheatsWndProc(Window *w, WindowEvent *e) } else { int32 val; - DrawFrameRect(x + 20, y + 1, x + 20 + 9, y + 9, 3, clk == i * 2 + 1 ? FR_LOWERED : 0); - DrawFrameRect(x + 30, y + 1, x + 30 + 9, y + 9, 3, clk == i * 2 + 2 ? FR_LOWERED : 0); - DrawStringCentered(x + 25, y + 1, STR_6819, 0); - DrawStringCentered(x + 35, y + 1, STR_681A, 0); + /* Draw [<][>] boxes for settings of an integer-type */ + DrawArrowButtons(x + 20, y, 3, clk - (i * 2), true); val = ReadCE(ce); -- cgit v1.2.3-70-g09d2