corrected object casts, make it work again on win32

This commit is contained in:
Hans Breuer
2000-11-12 15:46:55 +00:00
parent 8f05462d59
commit aceeae34fb
16 changed files with 320 additions and 31 deletions

View File

@ -380,9 +380,17 @@ gdk_pixmap_create_from_data (GdkWindow *window,
* realized it's much easier to do it using gdk...:
*/
GdkPixmap *result = gdk_pixmap_new (window, width, height, depth);
GdkPixmap *source = gdk_bitmap_create_from_data (window, data, width, height);
GdkGC *gc = gdk_gc_new (result);
GdkPixmap *result;
GdkPixmap *source;
GdkGC *gc;
if (GDK_WINDOW_DESTROYED (window))
return NULL;
result = gdk_pixmap_new (window, width, height, depth);
source = gdk_bitmap_create_from_data (window, data, width, height);
gc = gdk_gc_new (result);
gdk_gc_set_foreground (gc, fg);
gdk_gc_set_background (gc, bg);
gdk_draw_drawable (result, gc, source, 0, 0, 0, 0, width, height);