mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
pointer: Rename position to hotspot position in Color Pointer Update
The attributes xPos and yPos for a Color Pointer Update are confusing, as they may be confused with the xPos and yPos of the pointer bitmap on the actual screen. Rename these attributes to what they actually represent, and that is the hotspot position. xPos and yPos are still members of the hotspot. However, hotSpotX and hotSpotY are much more clearer. In addition to that, the Large Pointer Update uses the same names for the hotspot coordinates.
This commit is contained in:
committed by
akallabeth
parent
ba7840f8ad
commit
8362b3707e
8
libfreerdp/cache/pointer.c
vendored
8
libfreerdp/cache/pointer.c
vendored
@@ -148,8 +148,8 @@ static BOOL update_pointer_color(rdpContext* context, const POINTER_COLOR_UPDATE
|
||||
if (pointer == NULL)
|
||||
return FALSE;
|
||||
pointer->xorBpp = 24;
|
||||
pointer->xPos = pointer_color->xPos;
|
||||
pointer->yPos = pointer_color->yPos;
|
||||
pointer->xPos = pointer_color->hotSpotX;
|
||||
pointer->yPos = pointer_color->hotSpotY;
|
||||
pointer->width = pointer_color->width;
|
||||
pointer->height = pointer_color->height;
|
||||
|
||||
@@ -224,8 +224,8 @@ static BOOL update_pointer_new(rdpContext* context, const POINTER_NEW_UPDATE* po
|
||||
return FALSE;
|
||||
|
||||
pointer->xorBpp = pointer_new->xorBpp;
|
||||
pointer->xPos = pointer_new->colorPtrAttr.xPos;
|
||||
pointer->yPos = pointer_new->colorPtrAttr.yPos;
|
||||
pointer->xPos = pointer_new->colorPtrAttr.hotSpotX;
|
||||
pointer->yPos = pointer_new->colorPtrAttr.hotSpotY;
|
||||
pointer->width = pointer_new->colorPtrAttr.width;
|
||||
pointer->height = pointer_new->colorPtrAttr.height;
|
||||
if (!upate_pointer_copy_andxor(
|
||||
|
||||
Reference in New Issue
Block a user