Commit Graph
5295 Commits
Author SHA1 Message Date
dhewg 19c407ca69 ANDROID: Fix texture double release 2011-03-24 22:04:03 +01:00
dhewg e6080087c8 ANDROID: Fix cursor's keycolor
Don't wipe the RGB bits, fixes wrong colors on BASS cursors
2011-03-24 18:56:59 +01:00
dhewg 397fd31a17 ANDROID: Cleanup 2011-03-24 18:56:54 +01:00
Max Horn 8982fff1b7 AUDIO: Add pure virtual MidiDriver::isOpen() method
This in turn enables modifying MidiDriver_MPU401::close() to allow
it to be called on a midi driver that has not yet been opened.

The specific issue that triggered me to make these changes was a
crash-upon-quit in HUGO, caused by it instantiating a midi driver,
then encountering an error (missing hugo.dat) *before* having
opened the new midi driver; the general cleanup code then tries
to close the (not yet opened) midi driver -> kaboom

Also fixed some engines which were leaking MidiDriver instances.
2011-03-22 23:51:47 +01:00
dhewg 5f96dc6867 ANDROID: Fix timer frequency to match SDL 2011-03-22 21:02:42 +01:00
dhewg 18d9654ca2 TIMER: Cleanup 2011-03-22 21:02:41 +01:00
Johannes Schickel c064fa5c5b OPENGL: Fix mouse cursor position in Normal mode when AR is enabled. 2011-03-21 00:43:16 +01:00
Johannes Schickel 33cf1f8f59 OPENGL: Get rid of unused switchDisplayMode. 2011-03-20 17:30:23 +01:00
Johannes Schickel 6502e191b9 OPENGL: Handle aspect ratio correction as flag instead of having a special mode for it.
This partly fixes the OpenGL mode mess, but now OpenGL Normal and OpenGL
Conserve will feature the same semantics when aspect ratio correction is
enabled... That is still something to solve.
2011-03-20 17:29:08 +01:00
dhewg c77e7f75a6 ANDROID: Trust ASCII kbd codes on unknown keys 2011-03-20 13:29:21 +01:00
dhewg 0e9af50d48 ANDROID: Add port specific README
First version, just describing the controls and related hacks
2011-03-19 19:52:01 +01:00
dhewg 0d9a852f46 ANDROID: Implement OSystem::getSystemLanguage() 2011-03-19 12:36:27 +01:00
dhewg 69e271225f ANDROID: Log some system properties 2011-03-19 12:17:43 +01:00
dhewg 2def212de7 ALL: s/PI/M_PI/
Tip of the day: git grep -w PI
2011-03-19 11:24:06 +01:00
md5 a4c05b1632 Fixed compilation of the N64 port 2011-03-19 04:01:28 +02:00
dhewg 3e3619feb8 ANDROID: Cleanup 2011-03-18 22:14:54 +01:00
dhewg e056bfca9c ANDROID: Seperate DPAD codes 2011-03-18 21:53:25 +01:00
dhewg b721547213 ANDROID: Implement trackball click 2011-03-18 21:53:25 +01:00
dhewg 47e9db8fdf ANDROID: Fix KeyEvent NullPointerException
Could happen with some special symbols from the virtual keyboard
2011-03-17 22:02:17 +01:00
Johannes Schickel 8ab136dafb OPENGL: Fix screenshots when the display width is not divisible by 4. 2011-03-17 21:20:20 +01:00
Johannes Schickel 83c638ad02 OPENGL: Setup the correct header size for BMP screenshots.
This fixes an color bug in the resulting screenshots.
2011-03-17 21:20:20 +01:00
Johannes Schickel 8d35d91bdf OPENGL: Cleanup switchDisplayMode. 2011-03-17 21:20:20 +01:00
Johannes Schickel f490e6f361 OPENGLSDL: More refactoring to avoid direct access of OpenGlGraphicsManager's members. 2011-03-17 21:20:20 +01:00
Johannes Schickel 83b199e921 OPENGL: Move setFullscreenMode to OpenGLGraphicsManager. 2011-03-17 21:20:20 +01:00
Johannes Schickel 8d87a460b0 OPENGLSDL: Handle active fullscreen mode OPENGLSDL internal. 2011-03-17 21:20:20 +01:00
Johannes Schickel c9f6136110 OPENGLSDL: Cleanup. 2011-03-17 21:20:20 +01:00
Johannes Schickel daf6050d7c OPENGL: Make setScale non-virtual. 2011-03-17 21:20:20 +01:00
dhewg 0eb5352290 ANDROID: Increase default touchpad mode scale
aka my display is bigger than yours
2011-03-17 21:01:49 +01:00
dhewg 8953581ec9 ANDROID: Ignore the slop area on all touch scrolls
Prevents initial cursor jumps
2011-03-17 21:01:49 +01:00
Johannes Schickel 758aa78acc OPENGL: Get rid of _aspectRatioCorrection. 2011-03-17 19:55:06 +01:00
Johannes Schickel 96979f73fc OPENGL: Slight refactoring.
First step into making all state variables of the OpenGL backend private, to
help making the backend more maintainable, by disallowing subclasses to just
mess with everything...
2011-03-17 19:55:06 +01:00
dhewg 70e2c4266b ANDROID: Get rid of more gfx glitches 2011-03-17 19:35:58 +01:00
dhewg 82bcddf8da ANDROID: Init vars to match with the defaults
The feature flags are set too late, so lets fix that here
2011-03-17 19:35:58 +01:00
dhewg f4fd9e8b50 ANDROID: Fix cursor visibility 2011-03-17 19:35:58 +01:00
dhewg 23213d23dc ANDROID: Log ASCII code of invalid keycodes 2011-03-17 19:35:57 +01:00
dhewg 2ea6380040 ANDROID: Plug RGB cursor memleak 2011-03-17 19:35:57 +01:00
Johannes Schickel 42d3b8fcbd OPENGL: Fix compilation when USE_OSD is not defined. 2011-03-17 18:35:32 +01:00
Johannes Schickel 372af10a7b OPENGL: Update the OSD texture when visible while the output mode changes.
This fixes annoying graphics glitches, which occured sometimes when resizing
the Window.
2011-03-17 18:35:32 +01:00
Johannes Schickel 3c656916f1 OPENGL: Always properly set the overlay dimensions in loadGFXMode. 2011-03-17 18:35:32 +01:00
Johannes Schickel 019aa63b15 OPENGL: Fix "Original" mode by setting up the corret screen dimensions. 2011-03-17 18:35:18 +01:00
Johannes Schickel e08683d939 OPENGL: Refactor warpMouse.
Now subclasses will not need to worry about the scaling logic themselves, but
just need to implement setInternalMousePosition, which should handles setting
the system's mouse coordinates.
2011-03-17 17:37:42 +01:00
Johannes Schickel cb6f02f7ef Merge branch 'sdl-focus-rect' of https://github.com/lordhoto/scummvm
Conflicts:
	backends/graphics/sdl/sdl-graphics.cpp
2011-03-17 16:48:55 +01:00
dhewg 093b74e405 ANDROID: Disable game/overlay blending
Doesn't work on some drivers, need to do it differently
2011-03-16 23:57:00 +01:00
dhewg adef4c3f42 ANDROID: Input system overhaul
Rewritten input system with many new feature.
Fixed related bugs and shortcomings on the way.
2011-03-16 20:54:49 +01:00
dhewg e71c2cf850 ANDROID: Constify getDrawRect() 2011-03-16 20:54:25 +01:00
dhewg 6b346c1fe0 ANDROID: Cleanup and extend chooseEglConfig
Add more checks and log all possible configs
2011-03-16 20:54:25 +01:00
dhewg 6e4af65be1 ANDROID: Add missing cases to getFeatureState() 2011-03-15 00:06:00 +01:00
dhewg 7b850c18c7 ANDROID: Cleanup 2011-03-15 00:05:59 +01:00
dhewg 9e7ee4953e ANDROID: Halve the audio buffer size
Also, run into the blocking audio write without sleep. This hopefully
fixes audio hickups on slow devices.
2011-03-14 20:26:35 +01:00
dhewg f706b1568d ANDROID: Cleanup
Removed not required checks since we now buffer texture contents
2011-03-14 20:10:41 +01:00