Changeset 896 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Feb 14, 2007 11:03:34 AM (18 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleView.h
r382 r896 83 83 84 84 void onFullscreenChange (bool on); 85 85 86 86 void fixModifierState (LONG *codes, uint *count); 87 87 … … 206 206 VBoxDefs::RenderMode mode; 207 207 208 #if defined(Q_WS_WIN) 209 HCURSOR mAlphaCursor; 210 #endif 211 208 212 #if defined (VBOX_GUI_USE_REFRESH_TIMER) 209 213 QPixmap pm; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r649 r896 302 302 { 303 303 QApplication::postEvent ( 304 view, new RuntimeErrorEvent (!!fatal, QString::fromUcs2 (id), 304 view, new RuntimeErrorEvent (!!fatal, QString::fromUcs2 (id), 305 305 QString::fromUcs2 (message))); 306 306 return S_OK; … … 355 355 , muCapsLockAdaptionCnt (2) 356 356 , mode (rm) 357 #if defined(Q_WS_WIN) 358 , mAlphaCursor (NULL) 359 #endif 357 360 { 358 361 Assert (!cconsole.isNull() && … … 477 480 UnhookWindowsHookEx (g_kbdhook); 478 481 g_view = 0; 482 if (mAlphaCursor) 483 DestroyIcon (mAlphaCursor); 479 484 #endif 480 485 … … 672 677 { 673 678 /// @todo (r=dmik) not currently sure is this method necessary to 674 // fix fullscreen toggle problems (invalid areas) on Linux/SDL 679 // fix fullscreen toggle problems (invalid areas) on Linux/SDL 675 680 // if (fb) 676 681 // { … … 2155 2160 HBITMAP hBitmap; 2156 2161 void *lpBits; 2157 HCURSOR hAlphaCursor = NULL;2158 2162 2159 2163 ::ZeroMemory (&bi, sizeof (BITMAPV5HEADER)); … … 2262 2266 ii.hbmColor = hBitmap; 2263 2267 2264 hAlphaCursor = CreateIconIndirect (&ii);2268 HCURSOR hAlphaCursor = CreateIconIndirect (&ii); 2265 2269 Assert (hAlphaCursor); 2266 2270 if (hAlphaCursor) … … 2268 2272 viewport()->setCursor (QCursor (hAlphaCursor)); 2269 2273 ok = true; 2270 DestroyIcon (hAlphaCursor); 2274 if (mAlphaCursor) 2275 DestroyIcon (mAlphaCursor); 2276 mAlphaCursor = hAlphaCursor; 2271 2277 } 2272 2278 }
Note:
See TracChangeset
for help on using the changeset viewer.