summaryrefslogtreecommitdiff
path: root/atari/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'atari/gui.c')
-rwxr-xr-xatari/gui.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/atari/gui.c b/atari/gui.c
index 8b9d0a9d0..c5b03d62d 100755
--- a/atari/gui.c
+++ b/atari/gui.c
@@ -88,12 +88,16 @@ short vdih;
short rsc_ntree;
long next_poll;
bool rendering = false;
+
/* Comandline / Options: */
int cfg_width;
int cfg_height;
const char * cfg_homepage_url;
+
+/* path to choices file: */
+char options[PATH_MAX];
extern GEM_PLOTTER plotter;
@@ -821,7 +825,7 @@ void gui_quit(void)
RsrcXtype( 0, rsc_trindex, rsc_ntree);
unbind_global_events();
MenuBar( h_gem_menu , 0 );
- if( h_gem_rsrc == NULL ) {
+ if( h_gem_rsrc != NULL ) {
RsrcXfree(h_gem_rsrc );
}
LOG(("Shutting down plotter"));
@@ -988,7 +992,6 @@ static void gui_init2(int argc, char** argv)
*/
int main(int argc, char** argv)
{
- char options[PATH_MAX];
char messages[PATH_MAX];
setbuf(stderr, NULL);