Search
lxdream.org :: lxdream/src/drivers/video_gdk.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/video_gdk.c
changeset 669:ab344e42bca9
prev661:99d9494955a9
next736:a02d1475ccfd
author nkeynes
date Mon May 12 10:00:13 2008 +0000 (13 years ago)
permissions -rw-r--r--
last change Cleanup most of the -Wall warnings (getting a bit sloppy...)
Convert FP code to use fixed banks rather than indirect pointer
(3-4% faster this way now)
file annotate diff log raw
1.1 --- a/src/drivers/video_gdk.c Thu Apr 17 00:01:40 2008 +0000
1.2 +++ b/src/drivers/video_gdk.c Mon May 12 10:00:13 2008 +0000
1.3 @@ -34,9 +34,9 @@
1.4 static render_buffer_t gdk_pixbuf_create_render_buffer( uint32_t width, uint32_t height );
1.5 static void gdk_pixbuf_destroy_render_buffer( render_buffer_t buffer );
1.6 static gboolean gdk_pixbuf_set_render_target( render_buffer_t buffer );
1.7 -static gboolean gdk_pixbuf_display_render_buffer( render_buffer_t buffer );
1.8 +static void gdk_pixbuf_display_render_buffer( render_buffer_t buffer );
1.9 static void gdk_pixbuf_load_frame_buffer( frame_buffer_t frame, render_buffer_t buffer );
1.10 -static gboolean gdk_pixbuf_display_blank( uint32_t colour );
1.11 +static void gdk_pixbuf_display_blank( uint32_t colour );
1.12 static gboolean gdk_pixbuf_read_render_buffer( unsigned char *target, render_buffer_t buffer, int rowstride, int format );
1.13
1.14 static void *pixbuf_array[MAX_PIXBUF];
1.15 @@ -107,7 +107,7 @@
1.16 }
1.17 }
1.18
1.19 -static gboolean gdk_pixbuf_display_render_buffer( render_buffer_t buffer )
1.20 +static void gdk_pixbuf_display_render_buffer( render_buffer_t buffer )
1.21 {
1.22 glFinish();
1.23
1.24 @@ -150,7 +150,7 @@
1.25 }
1.26 }
1.27
1.28 -static gboolean gdk_pixbuf_display_blank( uint32_t colour )
1.29 +static void gdk_pixbuf_display_blank( uint32_t colour )
1.30 {
1.31 GdkGC *gc = gtk_video_drawable->style->fg_gc[GTK_STATE_NORMAL];
1.32 GdkColor col = { };
1.33 @@ -158,7 +158,6 @@
1.34 gdk_gc_set_foreground( gc, &col );
1.35 gdk_gc_set_background( gc, &col );
1.36 gdk_draw_rectangle( gtk_video_drawable->window, gc, TRUE, 0, 0, video_width, video_height );
1.37 - return TRUE;
1.38 }
1.39
1.40 static gboolean gdk_pixbuf_set_render_target( render_buffer_t buffer )
.