mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
gl crash fixes
This commit is contained in:
@ -131,12 +131,12 @@ main(int argc, char **argv)
|
||||
usage(argv[0]);
|
||||
}
|
||||
|
||||
win = cltr_window_new(640, 480);
|
||||
win = cltr_window_new(800, 600);
|
||||
|
||||
if (want_fullscreen)
|
||||
cltr_window_set_fullscreen(CLTR_WINDOW(win));
|
||||
|
||||
grid = cltr_photo_grid_new(640, 480, cols, cols, ImgPath);
|
||||
grid = cltr_photo_grid_new(800, 600, cols, cols, ImgPath);
|
||||
|
||||
cltr_window_focus_widget(CLTR_WINDOW(win), grid);
|
||||
|
||||
|
@ -41,6 +41,7 @@ handle_xevent(CltrWidget *win, XEvent *xev, void *cookie)
|
||||
else
|
||||
cltr_video_pause (video);
|
||||
Paused ^= 1;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -65,17 +66,17 @@ main (int argc, char *argv[])
|
||||
|
||||
font = font_new("Sans bold 96");
|
||||
|
||||
win = cltr_window_new(1400, 1050);
|
||||
win = cltr_window_new(800, 600);
|
||||
|
||||
video = cltr_video_new(1400, 1050);
|
||||
video = cltr_video_new(800, 600);
|
||||
|
||||
cltr_video_set_source(CLTR_VIDEO(video), argv[1]);
|
||||
|
||||
cltr_widget_add_child(win, video, 0, 0);
|
||||
|
||||
// label = cltr_label_new("hello world", font, &col);
|
||||
label = cltr_label_new("hello world", font, &col);
|
||||
|
||||
// cltr_widget_add_child(win, label, 100, 300);
|
||||
cltr_widget_add_child(win, label, 100, 300);
|
||||
|
||||
cltr_window_on_xevent(CLTR_WINDOW(win), handle_xevent, video);
|
||||
|
||||
|
Reference in New Issue
Block a user