summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xine-engine/osd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xine-engine/osd.c b/src/xine-engine/osd.c
index 4a88b18ad..80eff7461 100644
--- a/src/xine-engine/osd.c
+++ b/src/xine-engine/osd.c
@@ -574,8 +574,8 @@ static void osd_filled_rect (osd_object_t *osd,
y = 0;
}
- dx = MAX( dx, osd->width );
- dy = MAX( dy, osd->height );
+ dx = MIN( dx, osd->width );
+ dy = MIN( dy, osd->height );
/* update clipping area */
osd->x1 = MIN( osd->x1, x );