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

« back to all changes in this revision

Viewing changes to src/arch/unix/uited.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:
1
1
/*
2
 
 * uivdc.c
 
2
 * uited.c
3
3
 *
4
4
 * Written by
5
5
 *  Andreas Boose <viceteam@t-online.de>
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"
60
61
UI_MENU_DEFINE_TOGGLE(TEDDoubleScan)
61
62
UI_MENU_DEFINE_TOGGLE(TEDVideoCache)
62
63
UI_MENU_DEFINE_TOGGLE(TEDExternalPalette)
 
64
#ifdef HAVE_XVIDEO
 
65
UI_MENU_DEFINE_TOGGLE(TEDHwScale)
 
66
#endif
63
67
UI_MENU_DEFINE_TOGGLE(TEDScale2x)
64
68
#ifdef USE_XF86_EXTENSIONS
65
69
UI_MENU_DEFINE_TOGGLE(TEDFullscreen)
96
100
};
97
101
#endif
98
102
 
 
103
static UI_CALLBACK(color_set)
 
104
{
 
105
    if (!CHECK_MENUS) {
 
106
        ui_update_menus();
 
107
    } else {
 
108
        int val;
 
109
 
 
110
        resources_get_value("TEDExternalPalette", (void *)&val);
 
111
 
 
112
        if (val)
 
113
            ui_menu_set_sensitive(w, True);
 
114
        else
 
115
            ui_menu_set_sensitive(w, False);
 
116
    }
 
117
}
 
118
 
99
119
ui_menu_entry_t ted_submenu[] = {
100
120
    { N_("*Double size"),
101
121
      (ui_callback_t)toggle_TEDDoubleSize, NULL, NULL },
106
126
    { "--" },
107
127
    { N_("*External color set"),
108
128
      (ui_callback_t)toggle_TEDExternalPalette, NULL, NULL },
109
 
    { N_("Color set"),
110
 
      NULL, NULL, palette_submenu },
 
129
    { N_("*Color set"),
 
130
      (ui_callback_t)color_set, NULL, palette_submenu },
111
131
    { "--" },
112
132
#if 0
113
133
    { N_("*Fast PAL emulation"),
114
134
      (ui_callback_t)toggle_DelayLoopEmulation, NULL, NULL },
115
135
#endif
 
136
#ifdef HAVE_XVIDEO
 
137
    { N_("*Hardware scaling"),
 
138
      (ui_callback_t)toggle_TEDHwScale, NULL, NULL },
 
139
#endif
116
140
    { N_("PAL Emulation"),
117
141
      NULL, NULL, PALMode_submenu },
118
142
    { "--" },