summaryrefslogtreecommitdiff
path: root/src/uxa/uxa-damage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uxa/uxa-damage.c')
-rw-r--r--src/uxa/uxa-damage.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/uxa/uxa-damage.c b/src/uxa/uxa-damage.c
index 7d52fb1..3449b97 100644
--- a/src/uxa/uxa-damage.c
+++ b/src/uxa/uxa-damage.c
@@ -92,10 +92,12 @@ trim_region (RegionPtr pRegion,
int subWindowMode)
{
RegionRec pixClip;
+ int draw_x = 0;
+ int draw_y = 0;
#ifdef COMPOSITE
int screen_x = 0, screen_y = 0;
#endif
-
+
/* short circuit for empty regions */
if (!REGION_NOTEMPTY(pScreen, pRegion))
return;
@@ -135,9 +137,6 @@ trim_region (RegionPtr pRegion,
* any drawable-based clipping. */
}
- int draw_x = 0;
- int draw_y = 0;
-
/* Clip against border or pixmap bounds */
if (pDrawable->type == DRAWABLE_WINDOW)
{