Search
lxdream.org :: lxdream/src/drivers/video_gtk.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/video_gtk.c
changeset 1076:18c164e8aec4
prev1066:ddffe9d2b332
next1236:d93175c36387
author nkeynes
date Mon Aug 03 08:41:11 2009 +1000 (12 years ago)
permissions -rw-r--r--
last change Rearrange frame output slightly.
pvr2_display_frame renamed to pvr2_next_frame and changed to update the
frame data without displaying it.
pvr2_redraw_display renamed to pvr2_draw_frame, called internally after
pvr2_next_frame
Add swap_buffers() method to the display driver
Remove explicit glDrawBuffer() calls where they're referencing the window.
pvr2_draw_frame now gets to decide where to draw.
Add force_vsync flag to force double-buffering (not configurable yet)
file annotate diff log raw
1.1 --- a/src/drivers/video_gtk.c Sun Jul 05 13:53:48 2009 +1000
1.2 +++ b/src/drivers/video_gtk.c Mon Aug 03 08:41:11 2009 +1000
1.3 @@ -136,11 +136,11 @@
1.4 video_gtk_keycode_to_dckeysym,
1.5 video_gtk_keycode_to_keysym,
1.6 NULL, NULL, NULL, NULL, NULL, NULL,
1.7 - video_gtk_display_blank, NULL };
1.8 + video_gtk_display_blank, NULL, NULL };
1.9
1.10 gboolean video_gtk_expose_callback(GtkWidget *widget, GdkEventExpose *event, gpointer data )
1.11 {
1.12 - pvr2_redraw_display();
1.13 + pvr2_draw_frame();
1.14 return TRUE;
1.15 }
1.16
1.17 @@ -148,7 +148,7 @@
1.18 {
1.19 video_width = event->width;
1.20 video_height = event->height;
1.21 - pvr2_redraw_display();
1.22 + pvr2_draw_frame();
1.23 return TRUE;
1.24 }
1.25
.