Changeset 6487 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jan 24, 2008 3:46:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/darwin/VBoxUtils-darwin.cpp
r6482 r6487 216 216 OSStatus DarwinRegionHandler (EventHandlerCallRef aInHandlerCallRef, EventRef aInEvent, void *aInUserData) 217 217 { 218 NORE F(aInHandlerCallRef);219 220 221 222 switch(GetEventKind (aInEvent))223 224 225 226 227 228 229 230 GetEventParameter (aInEvent, kEventParamWindowRegionCode, typeWindowRegionCode, NULL, sizeof(code), NULL, &code);231 232 233 234 235 GetEventParameter (aInEvent, kEventParamRgnHandle, typeQDRgnHandle, NULL, sizeof(rgn), NULL, &rgn);236 237 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 } 239 239 /* if the content of the whole window is queried return a copy of our saved region. */ 240 240 else if (code == (kWindowStructureRgn))// || kWindowGlobalPortRgn || kWindowUpdateRgn)) 241 241 { 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); 244 244 if(!pRegion->isNull () && pRegion) 245 245 { … … 249 249 } 250 250 break; 251 252 253 254 255 } 256 251 } 252 } 253 254 return status; 255 } 256
Note:
See TracChangeset
for help on using the changeset viewer.