23 Commits

Author SHA1 Message Date
Johannes Schickel
56b81877b9 IPHONE: Recreate mouse texture on palette changes when needed.
This fixes the color of the cursor in the Eye of the Beholder menu.
2013-01-14 00:03:37 +01:00
Johannes Schickel
89abab97e3 JANITORIAL: Remove trailing whitespaces.
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26 04:17:55 +02:00
Johannes Schickel
ac8f282ce1 IPHONE: Replace OverlayColor uses with uint16. 2012-06-20 17:13:12 +02:00
Johannes Schickel
aec9b9e22a ALL: Let overlay related methods in OSystem take a void * and use a proper pitch values.
This is a first step to get rid of OverlayColor, which is a requirement for
proper 4Bpp overlay support.
2012-06-16 04:17:14 +02:00
Johannes Schickel
d27d951d0b BACKENDS: Make OSystem::setMouseCursor take a "const void *" buffer.
This is mainly for consistency with OSystem::copyRectToScreen.
2012-06-16 03:28:42 +02:00
Johannes Schickel
31880186e1 BACKENDS: Let copyRectToScreen take a "const void *" instead of "const byte *" as buffer.
This removes the need to convert the parameter to copyRectToScreen to
"const byte *", which is commonly used in games, which use Graphics::Surface
to store their graphics data.
2012-06-16 02:18:01 +02:00
Johannes Schickel
a401f0a19e ALL: Replace cursorTargetScale in OSystem API with a simple "do not scale" logic.
All uses of the old target scale API actually wanted to disallow scaling of
the mouse cursor. This commit adapts our API to this and thus simplifies
backend implementations.

Some backends, most notable the Wii and Android, did some implementation of
the cursor target scale, which I didn't adapt yet. I added a TODO for the
porters there.
2012-06-03 02:02:57 +02:00
Johannes Schickel
6e31b841de IPHONE: Add some more debug printfs to graphics related OSystem functionality. 2012-03-29 02:34:26 +02:00
Johannes Schickel
aad85d957c IPHONE: Fall back to CLUT8 in case a non-supported screen mode is set up.
This makes the iPhone backend conform with the 16bpp API and thus no longer
causes assertions to fail in case the client code tries to set up an
unsupported game screen format.
2012-02-29 19:05:43 +01:00
Johannes Schickel
3b1e4b5bdc IPHONE: Let hi-color games directly draw onto the screen texture buffer.
This avoids an unecessary copying step from the framebuffer to the texture
buffer.
2012-02-26 01:25:18 +01:00
Johannes Schickel
83ce8da935 IPHONE: Implement 16bpp color support.
This feature is currently disabled by default.
2012-02-26 01:01:19 +01:00
Johannes Schickel
23732c7179 IPHONE: Get rid of _gameScreenRaw, instead use _framebuffer internally. 2012-02-25 20:22:23 +01:00
Johannes Schickel
97e486dee3 IPHONE: Implement very basic GFX transaction support.
This allows for AR ratio correction changes to take place, even when the AR
setting is set after initSize for example.
2012-02-25 19:49:05 +01:00
Johannes Schickel
c3b52343dc IPHONE: Only update on screen mouse coordinates when it's needed. 2012-02-24 01:44:17 +01:00
Johannes Schickel
5c55866068 IPHONE: Cleanup mouse cursor handling slightly.
Now the scaling etc. will be precalculated instead of being done on every
frame.
2012-02-24 01:33:37 +01:00
Johannes Schickel
5863f6a556 IPHONE: Add a mouse texture buffer surface to VideoContext. 2012-02-24 00:56:46 +01:00
Johannes Schickel
3f37842580 IPHONE: Directly use the game screen's texture buffer.
This gets rid of another intermediate buffer.
2012-02-23 21:52:44 +01:00
Johannes Schickel
8edcedf3b6 IPHONE: Directly use the overlay's texture buffer instead of another intermediate buffer. 2012-02-23 21:34:12 +01:00
Johannes Schickel
2ab5958c93 IPHONE: Move screen and overlay texture buffer to VideoContext. 2012-02-23 21:20:24 +01:00
Johannes Schickel
5ae958bcf3 IPHONE: Let iPhoneView and OSystem_IPHONE share the same VideoContext.
This allows for better sharing between the current video state in the view and
the OSystem implementation.

This also gets rid of most C interface functions for calling ObjC code.
2012-02-23 03:18:00 +01:00
Johannes Schickel
e00fc73eb8 IPHONE: Silence a few signed/unsigned integer comparison warnings. 2012-02-23 02:26:54 +01:00
Johannes Schickel
99ffbfedbc IPHONE: Use VideoContext in OSystem_IPHONE. 2012-02-23 02:25:26 +01:00
Johannes Schickel
c5ccb32b48 IPHONE: Move graphics related OSystem code to a ObjC++ file. 2012-02-23 01:52:50 +01:00