X11: fix Update_rect(0, 0, 0, 0)

This commit is contained in:
Thomas Bernard 2019-02-08 10:34:13 +01:00
parent a633bd88dd
commit c3b8d1ab65
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -255,6 +255,11 @@ void Update_rect(short x, short y, unsigned short width, unsigned short height)
{
int line, i;
if (screen == NULL || X11_image == NULL) return;
if (x == 0 && y == 0 && width == 0 && height == 0)
{
width = screen->w;
height = screen->h;
}
x *= Pixel_width;
width *= Pixel_width;
y *= Pixel_height;