From 44e3212310aadc43744e4deaa12269efb1d8eeb5 Mon Sep 17 00:00:00 2001 From: punkrockguy318 Date: Wed, 24 Sep 2008 08:55:43 +0000 Subject: [PATCH] made input cnofig window more usable --- changelog.txt | 1 + src/drivers/sdl/input.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index 389c84ae..19259942 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,5 @@ ---version 2.0.3 yet to be released--- +24-sep-2008 - punkrockguy318 - made the input config window more usable 24-sep-2008 - punkrockguy318 - --inputcfg can now be used without a filename 24-sep-2008 - punkrockguy318 - [ 2085437 ] should fix issues with missing author field crashing fceux diff --git a/src/drivers/sdl/input.cpp b/src/drivers/sdl/input.cpp index 4eca578c..c52a5165 100644 --- a/src/drivers/sdl/input.cpp +++ b/src/drivers/sdl/input.cpp @@ -538,7 +538,7 @@ ButtonConfigBegin() } // set the screen and notify the user of button configuration - screen = SDL_SetVideoMode(300, 1, 8, 0); + screen = SDL_SetVideoMode(420, 200, 8, 0); SDL_WM_SetCaption("Button Config",0); // XXX soules - why did we shut this down? @@ -1028,8 +1028,9 @@ DWaitButton(const uint8 *text, SDL_Event event; static int32 LastAx[64][64]; int x,y; - - SDL_WM_SetCaption((const char *)text,0); + std::string title = "Press a key for "; + title += (const char*)text; + SDL_WM_SetCaption(title.c_str(),0); puts((const char *)text); for(x = 0; x < 64; x++) { for(y = 0; y < 64; y++) {