~ubuntu-branches/ubuntu/quantal/vice/quantal

« back to all changes in this revision

Viewing changes to src/arch/beos/ui_vicii.cc

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2009-03-31 00:37:15 UTC
  • mfrom: (1.1.7 upstream) (9.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090331003715-i5yisvcfv7mgz3eh
Tags: 2.1.dfsg-1
* New major upstream release (closes: #495937).
* Add desktop files (closes: #501181).

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
#include "vsync.h"
38
38
}
39
39
 
40
 
static char *palette_name[] = {
41
 
        "default",
42
 
        "c64s",
43
 
        "ccs64",
44
 
        "frodo",
45
 
        "godot",
46
 
        "pc64",
47
 
        NULL
48
 
};
49
 
 
50
 
 
51
40
class ViciiWindow : public BWindow {
52
41
        public:
53
42
                ViciiWindow();
61
50
 
62
51
ViciiWindow::ViciiWindow() 
63
52
        : BWindow(BRect(50,50,210,155),"VIC-II settings",
64
 
                B_TITLED_WINDOW, 
 
53
                B_TITLED_WINDOW_LOOK, B_MODAL_APP_WINDOW_FEEL,
65
54
                B_NOT_ZOOMABLE | B_NOT_RESIZABLE) 
66
55
{
67
 
        BMessage *msg;
68
56
        BCheckBox *checkbox;
69
57
        BRect r;
70
58
        BBox *box;
139
127
}
140
128
 
141
129
void ui_vicii() {
 
130
        thread_id viciithread;
 
131
        status_t exit_value;
142
132
        
143
133
        if (viciiwindow != NULL)
144
134
                return;
146
136
        viciiwindow = new ViciiWindow;
147
137
 
148
138
        vsync_suspend_speed_eval();
149
 
        while (viciiwindow); /* wait until window closed */
 
139
 
 
140
        /* wait until window closed */
 
141
        viciithread=viciiwindow->Thread();
 
142
        wait_for_thread(viciithread, &exit_value);
150
143
}
151