diff options
| author | Ian C <ianc@noddybox.co.uk> | 2008-12-05 00:37:26 +0000 | 
|---|---|---|
| committer | Ian C <ianc@noddybox.co.uk> | 2008-12-05 00:37:26 +0000 | 
| commit | 9ebec735c488e2f7ac29933fb51b4e6e65c7b93f (patch) | |
| tree | c19015d71edcdf6dfba13d10115ebaa17a7c7fe7 /source/gui.c | |
| parent | f6a25a43ff98942dc051cfed6b28eefffeb8e40e (diff) | |
Initial working version of memory snapshots
Diffstat (limited to 'source/gui.c')
| -rw-r--r-- | source/gui.c | 14 | 
1 files changed, 8 insertions, 6 deletions
| diff --git a/source/gui.c b/source/gui.c index 0400197..7d328b7 100644 --- a/source/gui.c +++ b/source/gui.c @@ -215,7 +215,7 @@ int GUI_Menu(const char *opts[])      w=w*8+16;      x=SCREEN_WIDTH/2-w/2; -    y=SCREEN_HEIGHT/2-h/2; +    y=2;      while(!done)      { @@ -716,7 +716,7 @@ int GUI_FileSelect(char pwd[], char selected_file[], const char *filter)  } -int GUI_InputName(char name[], int maxlen) +int GUI_InputName(const char *prompt, const char *ext, char name[], int maxlen)  {      struct      { @@ -778,12 +778,12 @@ int GUI_InputName(char name[], int maxlen)      {  	if (update)  	{ -	    sprintf(text, "enter the snapshot name:\n" -			  "\"%s%%l%%\"" +	    sprintf(text, "%s:\n" +			  "\"%s%%l%%%s\""  			  "\n\n\npress enter to accept.\n"  			  "press period to backspace.\n" -			  "press space/break to cancel\n", -			  name); +			  "press space/break to cancel.\n", +			  prompt, name, ext);  	    ZX81DisplayString(text); @@ -851,6 +851,8 @@ int GUI_InputName(char name[], int maxlen)  	swiWaitForVBlank();      } +    ZX81ResumeDisplay(); +      return accept;  } | 
