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:
Pascal Nowack
2023-04-14 07:35:21 +02:00
committed by akallabeth
parent ba7840f8ad
commit 8362b3707e
4 changed files with 24 additions and 24 deletions

View File

@@ -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(