Quartz: locking should only recheck CGDisplayBaseAddress() for HWSURFACEs.
--HG-- branch : SDL-1.2
This commit is contained in:
parent
619e6fbf06
commit
fe0bd83030
1 changed files with 1 additions and 1 deletions
|
@ -1252,7 +1252,7 @@ static int QZ_LockHWSurface(_THIS, SDL_Surface *surface)
|
|||
* Always get latest bitmap address and rowbytes for the screen surface;
|
||||
* they can change dynamically (user has multiple monitors, etc).
|
||||
*/
|
||||
if (surface == SDL_VideoSurface) {
|
||||
if ((surface == SDL_VideoSurface) && (surface->flags & SDL_HWSURFACE)) {
|
||||
surface->pixels = (void*) CGDisplayBaseAddress (kCGDirectMainDisplay);
|
||||
surface->pitch = CGDisplayBytesPerRow (kCGDirectMainDisplay);
|
||||
return (surface->pixels != NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue