wintab32: Fix -Wabsolute-value warning.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-05-27 23:55:58 +02:00 committed by Alexandre Julliard
parent 0a3a2556c1
commit ca8de0e9f8
1 changed files with 4 additions and 1 deletions

View File

@ -223,7 +223,10 @@ LPOPENCONTEXT AddPacketToContextQueue(LPWTPACKET packet, HWND hwnd)
if (ptr->context.lcOutExtY > 0)
packet->pkY = ptr->context.lcOutExtY - packet->pkY;
else if (ptr->context.lcOutExtY < 0)
packet->pkY = abs(ptr->context.lcOutExtY + packet->pkY);
{
int y = ptr->context.lcOutExtY + packet->pkY;
packet->pkY = abs(y);
}
DUMPPACKET(*packet);