[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-patches
Subject: GetIconInfo returned incorrect info
From: "Dave Hawkes" <daveh-wine () cadlink ! com>
Date: 2000-06-27 12:51:53
[Download RAW message or body]
GetIconInfo did no correctly identify icons from cursors
Dave Hawkes
Cadlink Technology
["cursoricon.diff" (application/octet-stream)]
Index: ./windows/cursoricon.c
===================================================================
RCS file: /home/wine/wine/windows/cursoricon.c,v
retrieving revision 1.9
diff -u -w -r1.9 cursoricon.c
--- ./windows/cursoricon.c 2000/06/24 12:54:00 1.9
+++ ./windows/cursoricon.c 2000/06/27 12:18:27
@@ -82,7 +82,7 @@
static ICONCACHE *IconAnchor = NULL;
static CRITICAL_SECTION IconCrst = CRITICAL_SECTION_INIT;
-static DWORD ICON_HOTSPOT = 0x42424242;
+static WORD ICON_HOTSPOT = 0x4242;
/**********************************************************************
* CURSORICON_FindSharedIcon
@@ -1793,8 +1793,8 @@
(ciconinfo->ptHotSpot.y == ICON_HOTSPOT) )
{
iconinfo->fIcon = TRUE;
- iconinfo->xHotspot = 0;
- iconinfo->yHotspot = 0;
+ iconinfo->xHotspot = ciconinfo->nWidth / 2;
+ iconinfo->yHotspot = ciconinfo->nHeight / 2;
}
else
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic