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 1236:d93175c36387
prev1076:18c164e8aec4
next1251:b8ab59d39756
author nkeynes
date Fri Feb 24 21:17:47 2012 +1000 (7 years ago)
permissions -rw-r--r--
last change Factor video_width/video_height out into video_gl.c
Convert immediate-mode bits in video_gl.c into a structure for glDrawArray
Move setOrtho into defineOrthoMatrix in glutil.c
Rearrange various GL settings to keep a consistent state
file annotate diff log raw
1.1 --- a/src/drivers/video_gtk.c Mon Aug 03 08:41:11 2009 +1000
1.2 +++ b/src/drivers/video_gtk.c Fri Feb 24 21:17:47 2012 +1000
1.3 @@ -117,8 +117,6 @@
1.4
1.5
1.6 GtkWidget *gtk_video_drawable = NULL;
1.7 -int video_width = 640;
1.8 -int video_height = 480;
1.9
1.10 gboolean video_gtk_init();
1.11 void video_gtk_shutdown();
1.12 @@ -146,8 +144,7 @@
1.13
1.14 gboolean video_gtk_resize_callback(GtkWidget *widget, GdkEventConfigure *event, gpointer data )
1.15 {
1.16 - video_width = event->width;
1.17 - video_height = event->height;
1.18 + gl_set_video_size(event->width, event->height);
1.19 pvr2_draw_frame();
1.20 return TRUE;
1.21 }
1.22 @@ -281,8 +278,7 @@
1.23 return FALSE;
1.24 }
1.25
1.26 - video_width = gtk_video_drawable->allocation.width;
1.27 - video_height = gtk_video_drawable->allocation.height;
1.28 + gl_set_video_size(gtk_video_drawable->allocation.width, gtk_video_drawable->allocation.height);
1.29 #ifdef HAVE_OSMESA
1.30 video_gdk_init_driver( &display_gtk_driver );
1.31 #else
.