summaryrefslogtreecommitdiff
path: root/source/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/gui.c')
-rw-r--r--source/gui.c14
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;
}