10 #include "SDL_config_symbian.h"
12 #define PANIC(x) Panic(x, __LINE__)
13 #define PANIC_IF_ERROR(x) (x == KErrNone || Panic(x, __LINE__))
15 TInt
Panic(TInt aErr
, TInt aLine
);
17 typedef void (*TSdlCleanupOperation
) (void* aThis
);
22 void Append(const TWsEvent
& aEvent
) { m_queue
.push(aEvent
); }
23 const TWsEvent
Shift();
27 std::queue
<TWsEvent
> m_queue
;
33 TSdlCleanupItem(TSdlCleanupOperation aOperation
, void* aItem
);
34 TSdlCleanupOperation iOperation
;
42 static bool IsDsaAvailable();
43 static TInt
AllocSurface(const TSize
& aSize
, int bpp
);
44 static void UnlockHwSurface();
45 static TUint8
* LockHwSurface();
46 static void UpdateSwSurface();
47 static bool AddUpdateRect(TUint8
* aAddress
, const TRect
& aUpdateRect
, const TRect
& aTargetRect
);
48 static TInt
SetPalette(TInt aFirstcolor
, TInt aColorCount
, TUint32
* aPalette
);
49 static TInt
AppendCleanupItem(const TSdlCleanupItem
& aItem
);
50 static void RemoveCleanupItem(void* aItem
);
51 static void CleanupItems();
52 static void FreeSurface();
53 static TInt
ApplyGlesDsa();
54 static RWindow
* Window();