Cast to avoid warning

This commit is contained in:
Richard Hult 2009-02-02 14:21:13 +01:00 committed by Alexander Larsson
parent 06e583e536
commit f06d432ebe

View File

@ -350,7 +350,7 @@ gdk_quartz_draw_drawable (GdkDrawable *drawable,
* by using a scroll. FIXME: We need to check that the params support
* this hack, and make sure it's done properly with any offsets etc?
*/
if (drawable == window_impl)
if (drawable == (GdkDrawable *)window_impl)
{
[window_impl->view scrollRect:NSMakeRect (xsrc, ysrc, width, height)
by:NSMakeSize (xdest - xsrc, ydest - ysrc)];