--- np2/x11/gtk2/gtk_menu.c 2004/08/14 03:17:53 1.3
+++ np2/x11/gtk2/gtk_menu.c 2007/01/24 14:09:32 1.9
@@ -1,4 +1,4 @@
-/* $Id: gtk_menu.c,v 1.3 2004/08/14 03:17:53 monaka Exp $ */
+/* $Id: gtk_menu.c,v 1.9 2007/01/24 14:09:32 monaka Exp $ */
/*
* Copyright (c) 2004 NONAKA Kimihiro (aw9k-nnk@asahi-net.or.jp)
@@ -12,8 +12,6 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. The name of the author may not be used to endorse or promote products
- * derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
@@ -46,6 +44,7 @@
#include "pc9861k.h"
#include "s98.h"
#include "scrnbmp.h"
+#include "sxsi.h"
#include "kdispwin.h"
#include "toolwin.h"
@@ -109,6 +108,7 @@ static GtkActionEntry menu_entries[] = {
{ "SASI1Menu", NULL, "SASI-_1", NULL, NULL, NULL },
{ "SASI2Menu", NULL, "SASI-_2", NULL, NULL, NULL },
#endif
+{ "ScrnSizeMenu", NULL, "Size", NULL, NULL, NULL },
{ "SoundMenu", NULL, "_Sound", NULL, NULL, NULL },
/* MenuItem */
@@ -264,6 +264,16 @@ static GtkRadioActionEntry rotate_entrie
};
static const guint n_rotate_entries = G_N_ELEMENTS(rotate_entries);
+static GtkRadioActionEntry screensize_entries[] = {
+{ "320x200", NULL, "320x200", NULL, NULL, 4 },
+{ "480x300", NULL, "480x300", NULL, NULL, 6 },
+{ "640x400", NULL, "640x400", NULL, NULL, 8 },
+{ "800x500", NULL, "800x500", NULL, NULL, 10 },
+{ "960x600", NULL, "960x600", NULL, NULL, 12 },
+{ "1280x800", NULL, "1280x800", NULL, NULL, 16 },
+};
+static const guint n_screensize_entries = G_N_ELEMENTS(screensize_entries);
+
static void cb_beepvol(gint idx);
static void cb_f12key(gint idx);
static void cb_framerate(gint idx);
@@ -271,6 +281,7 @@ static void cb_joykey(gint idx);
static void cb_memory(gint idx);
static void cb_rotate(gint idx);
static void cb_screenmode(gint idx);
+static void cb_screensize(gint idx);
static void cb_soundboard(gint idx);
static const struct {
@@ -285,6 +296,7 @@ static const struct {
{ memory_entries, G_N_ELEMENTS(memory_entries), cb_memory },
{ rotate_entries, G_N_ELEMENTS(rotate_entries), cb_rotate },
{ screenmode_entries, G_N_ELEMENTS(screenmode_entries), cb_screenmode },
+ { screensize_entries, G_N_ELEMENTS(screensize_entries), cb_screensize },
{ soundboard_entries, G_N_ELEMENTS(soundboard_entries), cb_soundboard },
};
static const guint n_radiomenu_entries = G_N_ELEMENTS(radiomenu_entries);
@@ -299,7 +311,6 @@ static const gchar *ui_info =
" \n"
" \n"
" \n"
-" \n"
" \n"
" \n"
" \n"
@@ -341,12 +352,21 @@ static const gchar *ui_info =
" \n"
" \n"
" \n"
-" \n"
+" \n"
" \n"
" \n"
" \n"
" \n"
" \n"
+"
\n"
+" \n"
" \n"
" \n"
"