X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Femugtk.c;h=4b256f96c08ad9b00b81b8caf3c36b38b793e141;hb=04200c34655ad07dc51fa2dbbd5b770b8d319cab;hp=1a380f849076e04a0e6d810c77d9b6ed03856591;hpb=c9f73afe56fd33fd606be7ff5898d8588b2be0a4;p=emu8051.git diff --git a/src/emugtk.c b/src/emugtk.c index 1a380f8..4b256f9 100644 --- a/src/emugtk.c +++ b/src/emugtk.c @@ -49,7 +49,8 @@ static int running; static int running_function_tag; -static GtkWidget *mainwin; + +GtkWidget *mainwin; extern struct app_config_t *cfg; @@ -240,8 +241,6 @@ AddMenu(void) static int mainwin_configure_event(GtkWindow *window, GdkEvent *event, gpointer data) { - //event->configure.x; - //event->configure.y; cfg->win_width = event->configure.width; cfg->win_height = event->configure.height; @@ -449,6 +448,8 @@ main(int argc, char **argv) if (hex_file != NULL) emugtk_new_file(hex_file); + else + emugtk_Reset(); gtk_main();