mirror of https://github.com/snes9xgit/snes9x.git
Fix a couple of warnings/gdk_pixbuf_unref deprecation.
This commit is contained in:
parent
53defb5b11
commit
17fe17b4e2
|
@ -83,7 +83,7 @@ S9xGTKDisplayDriver::output (void *src,
|
|||
gdk_buffer_width = width;
|
||||
gdk_buffer_height = height;
|
||||
|
||||
gdk_pixbuf_unref (pixbuf);
|
||||
g_object_unref (pixbuf);
|
||||
|
||||
padded_buffer[2] = realloc (padded_buffer[2],
|
||||
gdk_buffer_width * gdk_buffer_height * 3);
|
||||
|
@ -195,7 +195,7 @@ S9xGTKDisplayDriver::deinit (void)
|
|||
free (buffer[0]);
|
||||
free (buffer[1]);
|
||||
|
||||
gdk_pixbuf_unref (pixbuf);
|
||||
g_object_unref (pixbuf);
|
||||
free (padded_buffer[2]);
|
||||
|
||||
return;
|
||||
|
|
|
@ -443,17 +443,11 @@ S9xXVDisplayDriver::init (void)
|
|||
}
|
||||
}
|
||||
|
||||
XSetWindowAttributes window_attr;
|
||||
xcolormap = XCreateColormap (display,
|
||||
GDK_COMPAT_WINDOW_XID (gtk_widget_get_window (drawing_area)),
|
||||
vi->visual,
|
||||
AllocNone);
|
||||
|
||||
window_attr.colormap = xcolormap;
|
||||
window_attr.border_pixel = 0;
|
||||
window_attr.event_mask = StructureNotifyMask | ExposureMask | PropertyChangeMask;
|
||||
window_attr.background_pixmap = None;
|
||||
|
||||
create_window (1, 1);
|
||||
gdk_window_hide (gdk_window);
|
||||
|
||||
|
|
Loading…
Reference in New Issue