VirtualBox

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


Ignore:
Timestamp:
Jan 24, 2008 3:46:41 PM (17 years ago)
Author:
vboxsync
Message:

Fixed tabs (banned).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/darwin/VBoxUtils-darwin.cpp

    r6482 r6487  
    216216OSStatus DarwinRegionHandler (EventHandlerCallRef aInHandlerCallRef, EventRef aInEvent, void *aInUserData)
    217217{
    218     NOREF(aInHandlerCallRef);
    219 
    220         OSStatus status = eventNotHandledErr;
    221        
    222         switch(GetEventKind (aInEvent))
    223         {
    224                 case kEventWindowGetRegion:
    225                 {
    226                         WindowRegionCode code;
    227                         RgnHandle rgn;
    228                        
    229                         /* which region code is being queried? */
    230                         GetEventParameter (aInEvent, kEventParamWindowRegionCode, typeWindowRegionCode, NULL, sizeof(code), NULL, &code);
    231 
    232                         /* if it is the opaque region code then set the region to Empty and return noErr to stop the propagation */
    233                         if (code == kWindowOpaqueRgn)
    234                         {
    235                                 GetEventParameter (aInEvent, kEventParamRgnHandle, typeQDRgnHandle, NULL, sizeof(rgn), NULL, &rgn);
    236                                 SetEmptyRgn (rgn);
    237                                 status = noErr;
    238                         }
     218    NORE F(aInHandlerCallRef);
     219
     220    OSStatus status = eventNotHandledErr;
     221   
     222    switch (GetEventKind (aInEvent))
     223    {
     224        case kEventWindowGetRegion:
     225        {
     226            WindowRegionCode code;
     227            RgnHandle rgn;
     228           
     229            /* which region code is being queried? */
     230            GetEventParameter (aInEvent, kEventParamWindowRegionCode, typeWindowRegionCode, NULL, sizeof (code), NULL, &code);
     231
     232            /* if it is the opaque region code then set the region to Empty and return noErr to stop the propagation */
     233            if (code == kWindowOpaqueRgn)
     234            {
     235                GetEventParameter (aInEvent, kEventParamRgnHandle, typeQDRgnHandle, NULL, sizeof (rgn), NULL, &rgn);
     236                SetEmptyRgn (rgn);
     237                status = noErr;
     238            }
    239239            /* if the content of the whole window is queried return a copy of our saved region. */
    240240            else if (code == (kWindowStructureRgn))// || kWindowGlobalPortRgn || kWindowUpdateRgn))
    241241            {
    242                                 GetEventParameter (aInEvent, kEventParamRgnHandle, typeQDRgnHandle, NULL, sizeof(rgn), NULL, &rgn);
    243                 QRegion *pRegion = static_cast<QRegion*>(aInUserData);
     242                GetEventParameter (aInEvent, kEventParamRgnHandle, typeQDRgnHandle, NULL, sizeof (rgn), NULL, &rgn);
     243                QRegion *pRegion = static_cast <QRegion*>(aInUserData);
    244244                if(!pRegion->isNull () && pRegion)
    245245                {
     
    249249            }
    250250            break;
    251                 }
    252         }
    253        
    254         return status;
    255 }
    256 
     251        }
     252    }
     253   
     254    return status;
     255}
     256
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