VirtualBox

Changeset 26998 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Mar 3, 2010 4:33:06 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
58306
Message:

FE/Qt4: New running VM core: win build fix #3.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp

    r26967 r26998  
    4747#ifdef Q_WS_PM
    4848# include "QIHotKeyEdit.h"
    49 #endif
     49#endif /* defined (Q_WS_PM) */
    5050
    5151#ifdef Q_WS_WIN
     
    5555#undef HIBYTE
    5656#include <windows.h>
    57 #endif
     57static UIMachineView *gView = 0;
     58static HHOOK gKbdHook = 0;
     59#endif /* defined (Q_WS_WIN) */
    5860
    5961#ifdef Q_WS_X11
     
    7476# endif
    7577# include "XKeyboard.h"
    76 #endif
    77 
    78 #if defined (Q_WS_MAC)
     78#endif /* defined (Q_WS_X11) */
     79
     80#ifdef Q_WS_MAC
    7981# include "DockIconPreview.h"
    8082# include "DarwinKeyboard.h"
     
    645647        UnhookWindowsHookEx(gKbdHook);
    646648    gView = 0;
    647     if (m_alphaCursor)
    648         DestroyIcon(m_alphaCursor);
    649649#endif
    650650
     
    17841784#if defined(Q_WS_WIN32)
    17851785
    1786 static HHOOK gKbdHook = NULL;
    1787 static UIMachineView *gView = 0;
    17881786LRESULT CALLBACK UIMachineView::lowLevelKeyboardProc(int nCode, WPARAM wParam, LPARAM lParam)
    17891787{
     
    22962294#endif
    22972295
    2298 void UIMachineView::fixModifierState(int *piCodes, uint *puCount)
     2296void UIMachineView::fixModifierState(LONG *piCodes, uint *puCount)
    22992297{
    23002298    /* Synchronize the views of the host and the guest to the modifier keys.
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h

    r26967 r26998  
    207207
    208208    /* Private helpers: */
    209     void fixModifierState(int *piCodes, uint *puCount);
     209    void fixModifierState(LONG *piCodes, uint *puCount);
    210210    QPoint viewportToContents(const QPoint &vp) const;
    211211    void scrollBy(int dx, int dy);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r26997 r26998  
    571571    /* Unregister console callback: */
    572572    session().GetConsole().UnregisterCallback(m_callback);
     573
     574#if defined(Q_WS_WIN)
     575    /* Destroy alpha cursor: */
     576    if (m_alphaCursor)
     577        DestroyIcon(m_alphaCursor);
     578#endif
    573579}
    574580
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette