gl crash fixes

This commit is contained in:
Matthew Allum
2005-05-11 12:52:01 +00:00
parent f085407d41
commit 24cefa8d2a
5 changed files with 116 additions and 26 deletions

View File

@ -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);

View File

@ -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);