DFBResult IWindow_Real::SetOpaque( const DFBRegion *opaque ) { D_DEBUG_AT( Core_Window, "IWindow_Real::%s( %p )\n", __FUNCTION__, obj ); D_MAGIC_ASSERT( obj, CoreWindow ); return dfb_window_set_opaque( obj, opaque ); }
static DFBResult IDirectFBWindow_SetOpaqueRegion( IDirectFBWindow *thiz, int x1, int y1, int x2, int y2 ) { DFBRegion region; DIRECT_INTERFACE_GET_DATA(IDirectFBWindow) D_DEBUG_AT( IDirectFB_Window, "%s()\n", __FUNCTION__ ); if (data->destroyed) return DFB_DESTROYED; if (x1 > x2 || y1 > y2) return DFB_INVAREA; region = (DFBRegion) { x1, y1, x2, y2 }; return dfb_window_set_opaque( data->window, ®ion ); }