~ubuntu-branches/ubuntu/maverick/vice/maverick

« back to all changes in this revision

Viewing changes to src/arch/unix/uivic.c

  • Committer: Bazaar Package Importer
  • Author(s): Zed Pobre
  • Date: 2005-02-01 11:30:26 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050201113026-3eyakzsmmheclvjg
Tags: 1.16-1
* New upstream version
* Fixes crash on 64-bit architectures (closes: #287640)
* x128 working again (closes: #286767)
* Works fine with /dev/dsp in use (not in the main changelog, but tested
  on my local machine as working).  Presumably, this also takes care of
  the issue with dsp being held.  I'm not sure if this is because I'm
  testing it on a 2.6 kernel now -- if you are still having problems
  with /dev/dsp, please reopen the bugs. (closes: #152952, #207942)
* Don't kill Makefile.in on clean

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
#include "fullscreenarch.h"
32
32
#include "machine.h"
 
33
#include "resources.h"
33
34
#include "uimenu.h"
34
35
#include "uipalemu.h"
35
36
#include "uipalette.h"
58
59
UI_MENU_DEFINE_TOGGLE(VICDoubleScan)
59
60
UI_MENU_DEFINE_TOGGLE(VICDoubleSize)
60
61
UI_MENU_DEFINE_TOGGLE(VICVideoCache)
 
62
UI_MENU_DEFINE_TOGGLE(VICExternalPalette)
 
63
#ifdef HAVE_XVIDEO
 
64
UI_MENU_DEFINE_TOGGLE(VICHwScale)
 
65
#endif
61
66
UI_MENU_DEFINE_TOGGLE(VICScale2x)
62
67
#ifdef USE_XF86_EXTENSIONS
63
68
UI_MENU_DEFINE_TOGGLE(VICFullscreen)
94
99
};
95
100
#endif
96
101
 
 
102
static UI_CALLBACK(color_set)
 
103
{
 
104
    if (!CHECK_MENUS) {
 
105
        ui_update_menus();
 
106
    } else {
 
107
        int val;
 
108
 
 
109
        resources_get_value("VICExternalPalette", (void *)&val);
 
110
 
 
111
        if (val)
 
112
            ui_menu_set_sensitive(w, True);
 
113
        else
 
114
            ui_menu_set_sensitive(w, False);
 
115
    }
 
116
}
 
117
 
97
118
ui_menu_entry_t vic_submenu[] = {
98
119
    { N_("*Double size"),
99
120
      (ui_callback_t)toggle_VICDoubleSize, NULL, NULL },
102
123
    { N_("*Video cache"),
103
124
      (ui_callback_t)toggle_VICVideoCache, NULL, NULL },
104
125
    { "--" },
105
 
    { N_("Color set"),
106
 
      NULL, NULL, palette_submenu },
 
126
    { N_("*External color set"),
 
127
      (ui_callback_t)toggle_VICExternalPalette, NULL, NULL },
 
128
    { N_("*Color set"),
 
129
      (ui_callback_t)color_set, NULL, palette_submenu },
107
130
    { "--" },
 
131
#ifdef HAVE_XVIDEO
 
132
    { N_("*Hardware scaling"),
 
133
      (ui_callback_t)toggle_VICHwScale, NULL, NULL },
 
134
#endif
108
135
    { N_("PAL Emulation Settings"),
109
136
      NULL, NULL, PALMode_submenu },
110
137
    { "--" },