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:
parent
0a3a2556c1
commit
ca8de0e9f8
|
@ -223,7 +223,10 @@ LPOPENCONTEXT AddPacketToContextQueue(LPWTPACKET packet, HWND hwnd)
|
||||||
if (ptr->context.lcOutExtY > 0)
|
if (ptr->context.lcOutExtY > 0)
|
||||||
packet->pkY = ptr->context.lcOutExtY - packet->pkY;
|
packet->pkY = ptr->context.lcOutExtY - packet->pkY;
|
||||||
else if (ptr->context.lcOutExtY < 0)
|
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);
|
DUMPPACKET(*packet);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue