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 677:3ee62740ff8f
prev669:ab344e42bca9
next681:1755a126b109
author nkeynes
date Thu May 29 10:50:25 2008 +0000 (13 years ago)
permissions -rw-r--r--
last change Remove pvr2mmio.h include from pvr2.h (it's supposed to be moore or less private)
Move redraw function from driver into pvr2_redraw_display()
file annotate diff log raw
1.1 --- a/src/drivers/video_gtk.c Mon May 12 10:00:13 2008 +0000
1.2 +++ b/src/drivers/video_gtk.c Thu May 29 10:50:25 2008 +0000
1.3 @@ -19,6 +19,7 @@
1.4
1.5 #include <gdk/gdkkeysyms.h>
1.6 #include <stdint.h>
1.7 +#include <stdlib.h>
1.8 #include "lxdream.h"
1.9 #include "display.h"
1.10 #include "dckeysyms.h"
1.11 @@ -142,12 +143,7 @@
1.12
1.13 gboolean video_gtk_expose_callback(GtkWidget *widget, GdkEventExpose *event, gpointer data )
1.14 {
1.15 - render_buffer_t buffer = pvr2_get_front_buffer();
1.16 - if( buffer == NULL ) {
1.17 - display_gtk_driver.display_blank(pvr2_get_border_colour());
1.18 - } else {
1.19 - display_gtk_driver.display_render_buffer(buffer);
1.20 - }
1.21 + pvr2_redraw_display();
1.22 return TRUE;
1.23 }
1.24
1.25 @@ -155,7 +151,7 @@
1.26 {
1.27 video_width = event->width;
1.28 video_height = event->height;
1.29 - video_gtk_expose_callback(widget, NULL, data);
1.30 + pvr2_redraw_display();
1.31 return TRUE;
1.32 }
1.33
.