diff options
-rw-r--r-- | liboverlay/overlay.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/liboverlay/overlay.cpp b/liboverlay/overlay.cpp index 9964271..7e6025c 100644 --- a/liboverlay/overlay.cpp +++ b/liboverlay/overlay.cpp @@ -717,10 +717,10 @@ static int overlay_setPosition(struct overlay_control_device_t *dev, */ /* Require a minimum size */ - if (temp_x < 8) - temp_x = 8; - if (temp_y < 8) - temp_y = 8; + if (temp_w < 8) + temp_w = 8; + if (temp_h < 8) + temp_h = 8; if (!shared->controlReady) { if ( temp_x < 0 ) temp_x = 0; |