VirtualBox

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


Ignore:
Timestamp:
Jan 25, 2007 4:30:23 PM (18 years ago)
Author:
vboxsync
Message:

r=bird: int != u. Cnt == c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r255 r315  
    165165static BOOL gfGuestCapsLockPressed = FALSE;
    166166static BOOL gfGuestScrollLockPressed = FALSE;
    167 static int  guGuestNumLockAdaptionCnt = 2;
    168 static int  guGuestCapsLockAdaptionCnt = 2;
     167static int  gcGuestNumLockAdaptions = 2;
     168static int  gcGuestCapsLockAdaptions = 2;
    169169
    170170/** modifier keypress status (scancode as index) */
     
    467467        /* Don't bother the guest with NumLock scancodes if he doesn't set the NumLock LED */
    468468        if (gfGuestNumLockPressed != fNumLock)
    469             guGuestNumLockAdaptionCnt = 2;
     469            gcGuestNumLockAdaptions = 2;
    470470        if (gfGuestCapsLockPressed != fCapsLock)
    471             guGuestCapsLockAdaptionCnt = 2;
     471            gcGuestCapsLockAdaptions = 2;
    472472        gfGuestNumLockPressed    = fNumLock;
    473473        gfGuestCapsLockPressed   = fCapsLock;
     
    28072807         * NumLock LED well.
    28082808         */
    2809         if (   guGuestNumLockAdaptionCnt
     2809        if (   gcGuestNumLockAdaptions
    28102810            && (gfGuestNumLockPressed ^ !!(SDL_GetModState() & KMOD_NUM)))
    28112811        {
    2812             guGuestNumLockAdaptionCnt--;
     2812            gcGuestNumLockAdaptions--;
    28132813            gKeyboard->PutScancode(0x45);
    28142814            gKeyboard->PutScancode(0x45 | 0x80);
    28152815        }
    28162816#if 0  /* For some reason SDL_GetModState() does not return KMOD_CAPS correctly */
    2817         if (   guGuestCapsLockAdaptionCnt
     2817        if (   gcGuestCapsLockAdaptions
    28182818            && (gfGuestCapsLockPressed ^ !!(SDL_GetModState() & KMOD_CAPS)))
    28192819        {
    2820             guGuestCapsLockAdaptionCnt--;
     2820            gcGuestCapsLockAdaptions--;
    28212821            gKeyboard->PutScancode(0x3a);
    28222822            gKeyboard->PutScancode(0x3a | 0x80);
Note: See TracChangeset for help on using the changeset viewer.

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