fix build issue

SVN revision: 17439
This commit is contained in:
Carsten Haitzler 2005-10-11 16:34:41 +00:00
parent ab76814442
commit e5fe3c4400
1 changed files with 55 additions and 45 deletions

View File

@ -991,6 +991,10 @@ _ecore_evas_x_rotation_set(Ecore_Evas *ee, int rotation)
if (!einfo) return;
rot_dif = ee->rotation - rotation;
if (rot_dif < 0) rot_dif = -rot_dif;
if (!strcmp(ee->driver, "software_x11"))
{
#ifdef BUILD_ECORE_X
Evas_Engine_Info_Software_X11 *einfo;
if (rot_dif != 180)
{
int minw, minh, maxw, maxh, basew, baseh, stepw, steph;
@ -1046,6 +1050,8 @@ _ecore_evas_x_rotation_set(Ecore_Evas *ee, int rotation)
evas_damage_rectangle_add(ee->evas, 0, 0, ee->h, ee->w);
else
evas_damage_rectangle_add(ee->evas, 0, 0, ee->w, ee->h);
#endif
}
}
static void
@ -1055,6 +1061,7 @@ _ecore_evas_x_shaped_set(Ecore_Evas *ee, int shaped)
return;
if (!strcmp(ee->driver, "software_x11"))
{
#ifdef BUILD_ECORE_X
Evas_Engine_Info_Software_X11 *einfo;
ee->shaped = shaped;
@ -1088,9 +1095,11 @@ _ecore_evas_x_shaped_set(Ecore_Evas *ee, int shaped)
ecore_x_window_shape_mask_set(ee->engine.x.win_container, 0);
}
}
#endif
}
else if (!strcmp(ee->driver, "xrender_x11"))
{
#ifdef BUILD_ECORE_EVAS_XRENDER
Evas_Engine_Info_XRender_X11 *einfo;
ee->shaped = shaped;
@ -1124,6 +1133,7 @@ _ecore_evas_x_shaped_set(Ecore_Evas *ee, int shaped)
ecore_x_window_shape_mask_set(ee->engine.x.win_container, 0);
}
}
#endif
}
}