diff options
author | Oystein Eftevaag | 2009-02-15 19:09:59 +0000 |
---|---|---|
committer | Oystein Eftevaag | 2009-02-15 19:09:59 +0000 |
commit | 650749d401d25bb2269f6ce975d69047cd0ab6bf (patch) | |
tree | 026c2a4d2b0c439d7d57bc7b8257d6ab71634f63 /backends/platform/iphone/iphone_video.h | |
parent | e28ed6b4c9bd406fe9fda7cb244e9d7054567b8d (diff) | |
download | scummvm-rg350-650749d401d25bb2269f6ce975d69047cd0ab6bf.tar.gz scummvm-rg350-650749d401d25bb2269f6ce975d69047cd0ab6bf.tar.bz2 scummvm-rg350-650749d401d25bb2269f6ce975d69047cd0ab6bf.zip |
Compatibility fixes for the official iPhone SDK
svn-id: r38280
Diffstat (limited to 'backends/platform/iphone/iphone_video.h')
-rw-r--r-- | backends/platform/iphone/iphone_video.h | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/backends/platform/iphone/iphone_video.h b/backends/platform/iphone/iphone_video.h index ebfeb1ce0b..0ef21007ba 100644 --- a/backends/platform/iphone/iphone_video.h +++ b/backends/platform/iphone/iphone_video.h @@ -28,14 +28,30 @@ #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> -#import <CoreSurface/CoreSurface.h> - #import <QuartzCore/QuartzCore.h> + #import "iphone_keyboard.h" +void *CoreSurfaceBufferGetBaseAddress(void* surface); +int CoreSurfaceBufferLock(void* surface, unsigned int lockType); +int CoreSurfaceBufferUnlock(void* surface); +void* CoreSurfaceBufferCreate(CFDictionaryRef dict); + +extern CFStringRef kCoreSurfaceBufferGlobal; +extern CFStringRef kCoreSurfaceBufferMemoryRegion; +extern CFStringRef kCoreSurfaceBufferPitch; +extern CFStringRef kCoreSurfaceBufferWidth; +extern CFStringRef kCoreSurfaceBufferHeight; +extern CFStringRef kCoreSurfaceBufferPixelFormat; +extern CFStringRef kCoreSurfaceBufferAllocSize; + +struct __GSEvent; +CGPoint GSEventGetLocationInWindow(struct __GSEvent *ev); +unsigned int GSEventDeviceOrientation(struct __GSEvent *ev); + @interface iPhoneView : UIView { - CoreSurfaceBufferRef _screenSurface; + void* _screenSurface; NSMutableArray* _events; NSLock* _lock; SoftKeyboard* _keyboardView; @@ -51,7 +67,7 @@ - (void)drawRect:(CGRect)frame; -- (CoreSurfaceBufferRef)getSurface; +- (void *)getSurface; - (void)initSurface; |