comparison Mouse.cpp @ 1068:6cbf4eb0f953

Mouse jumps fixed
author zipi
date Fri, 24 May 2013 16:58:43 +0100
parents 39f42990698f
children 5d5c78088274
comparison
equal deleted inserted replaced
1067:a19cdcaa36fe 1068:6cbf4eb0f953
92 v2->field_C = 1; 92 v2->field_C = 1;
93 if ( !strcmp(pName, "MICON1") ) 93 if ( !strcmp(pName, "MICON1") )
94 { 94 {
95 v3 = LoadCursorA(GetModuleHandleW(nullptr), "Arrow"); 95 v3 = LoadCursorA(GetModuleHandleW(nullptr), "Arrow");
96 SetClassLongA(hWnd, GCL_HCURSOR, (LONG)v3); 96 SetClassLongA(hWnd, GCL_HCURSOR, (LONG)v3);
97 /*if (pAsyncMouse) 97 }
98 { 98 else if ( !strcmp(pName, "MICON2") )
99 v10 = 0.0; 99 {
100 v5 = 0.0; 100 v7 = (LONG)LoadCursorA(GetModuleHandleW(nullptr), "Target");
101 //LABEL_12: 101 SetClassLongA(hWnd, -12, v7);
102 v6 = v5; 102 }
103 103 else if ( !strcmp(pName, "MICON3") )
104 GetCursorPos(&Point); 104 {
105 SetCursorPos(Point.x, Point.y); 105 v8 = (LONG)LoadCursorA(0, (LPCSTR)IDC_WAIT);
106 106 SetClassLongA(hWnd, -12, v8);
107 return; 107 }
108 }*/ 108 //LABEL_18:
109
109 GetCursorPos(&Point); 110 GetCursorPos(&Point);
110 ClientToScreen(hWnd,&Point); 111 ClientToScreen(hWnd,&Point);
111 SetCursorPos(Point.x, Point.y);
112 return;
113 }
114 if ( !strcmp(pName, "MICON2") )
115 {
116 v7 = (LONG)LoadCursorA(GetModuleHandleW(nullptr), "Target");
117 SetClassLongA(hWnd, -12, v7);
118 /*if (pAsyncMouse)
119 {
120 v10 = 14.0;
121 v5 = 14.0;
122 v6 = v5;
123 pAsyncMouse->SetHotspot(v6, v10);
124 if ( !pAsyncMouse || (pAsyncMouse->LoadCursor(pName), !pAsyncMouse) )
125 {
126 GetCursorPos(&Point);
127 SetCursorPos(Point.x, Point.y);
128 }
129 return;
130 }*/
131 //LABEL_20:
132 GetCursorPos(&Point);
133 SetCursorPos(Point.x, Point.y);
134 return;
135 }
136 if ( !strcmp(pName, "MICON3") )
137 {
138 v8 = (LONG)LoadCursorA(0, (LPCSTR)IDC_WAIT);
139 SetClassLongA(hWnd, -12, v8);
140 }
141 //LABEL_18:
142
143 GetCursorPos(&Point);
144 SetCursorPos(Point.x, Point.y); 112 SetCursorPos(Point.x, Point.y);
145 } 113 }
146 // 506128: using guessed type int areWeLoadingTexture; 114 // 506128: using guessed type int areWeLoadingTexture;
147 115
148 //----- (00469AE4) -------------------------------------------------------- 116 //----- (00469AE4) --------------------------------------------------------