made input cnofig window more usable

This commit is contained in:
punkrockguy318 2008-09-24 08:55:43 +00:00
parent 5cfc44801a
commit 44e3212310
2 changed files with 5 additions and 3 deletions
changelog.txt
src/drivers/sdl

View File

@ -1,4 +1,5 @@
---version 2.0.3 yet to be released--- ---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 - --inputcfg can now be used without a filename
24-sep-2008 - punkrockguy318 - [ 2085437 ] should fix issues with missing 24-sep-2008 - punkrockguy318 - [ 2085437 ] should fix issues with missing
author field crashing fceux author field crashing fceux

View File

@ -538,7 +538,7 @@ ButtonConfigBegin()
} }
// set the screen and notify the user of button configuration // 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); SDL_WM_SetCaption("Button Config",0);
// XXX soules - why did we shut this down? // XXX soules - why did we shut this down?
@ -1028,8 +1028,9 @@ DWaitButton(const uint8 *text,
SDL_Event event; SDL_Event event;
static int32 LastAx[64][64]; static int32 LastAx[64][64];
int x,y; int x,y;
std::string title = "Press a key for ";
SDL_WM_SetCaption((const char *)text,0); title += (const char*)text;
SDL_WM_SetCaption(title.c_str(),0);
puts((const char *)text); puts((const char *)text);
for(x = 0; x < 64; x++) { for(x = 0; x < 64; x++) {
for(y = 0; y < 64; y++) { for(y = 0; y < 64; y++) {