Max Horn
75d9f21580
BACKENDS: Change printf -> debug in vkeybd code
2011-05-03 12:53:14 +02:00
Johannes Schickel
71bdb86e02
Merge pull request #16 "Add a PixelFormat to Graphics::Surface.".
...
For further discussion check here:
https://github.com/scummvm/scummvm/pull/16
Conflicts:
graphics/png.cpp
2011-05-01 16:54:45 +02:00
D G Turner
57578c302f
BACKENDS: Fix compilation on ports using Virtual Keyboard.
2011-04-28 23:47:30 +01:00
Ori Avtalion
46cb9c785b
JANITORIAL: Yet another attempt at fixing compilation
2011-04-29 00:45:18 +03:00
Johannes Schickel
877004dbdd
BACKENDS: Adapt various backends code to set up Surface::format correctly.
...
Note that this change is not tested at all (not even compile wise!).
2011-04-17 21:14:19 +02:00
Johannes Schickel
7ac3ae108a
BACKEND: Prefer Surface::create taking a PixelFormat over the one taking a byte depth.
2011-04-17 16:24:37 +02:00
Max Horn
2e095e25f2
ALL: centre -> center
2011-04-14 14:34:28 +02:00
Max Horn
df05ed1a46
BACKENDS: Include scummsys.h at top of all .cpp files, *before* any #ifdefs
...
svn-id: r54573
2010-11-29 16:18:43 +00:00
Max Horn
179734a082
VKEYBD: Ensure stream destructor is properly called
...
svn-id: r54562
2010-11-28 23:27:56 +00:00
Max Horn
668adaa461
GUI: Rename gui/GuiManager.* to gui/gui-manager.*
...
svn-id: r54265
2010-11-16 10:19:01 +00:00
Max Horn
36cd5caf95
COMMON: Add XMLParser::parseIntegerKey variant accepting a Common::String
...
Almost all places where we used XMLParser::parseIntegerKey were using
it like this:
XMLParser::parseIntegerKey(str.c_str(), ...)
Since this makes the code harder to read, I overloaded the method to
also accept Commmon::String directly.
Also removed all .c_str() invocations where necessary.
svn-id: r53479
2010-10-15 12:19:13 +00:00
Jordi Vilalta Prat
8388e0dfea
JANITORAL: Clean trailing whitespaces.
...
svn-id: r53160
2010-10-12 02:18:11 +00:00
Robert Špalek
5e030bebcc
enable reading ZIP archives even without USE_ZLIB
...
our module unzip.cpp can read uncompressed ZIP archives even without zlib. if some of the files
inside are compressed and zlib is not linked in, an error is returned.
svn-id: r50483
2010-06-29 06:38:00 +00:00
Johannes Schickel
9d4cb7c23c
Add missing tokenizer.h include.
...
svn-id: r48326
2010-03-20 16:45:11 +00:00
Max Horn
8ac5d00d57
Hide ZipArchive implementation, only expose it via factory functions: makeZipArchive()
...
svn-id: r48040
2010-02-13 11:56:30 +00:00
Johannes Schickel
64491356b8
Fix virtual-keyboard not changing size, when the user changes the scaler while it is not visible.
...
svn-id: r47544
2010-01-25 02:08:28 +00:00
Johannes Schickel
aed02365ec
Strip trailing spaces/tabs.
...
svn-id: r47541
2010-01-25 01:39:44 +00:00
Torbjörn Andersson
4818467908
Silenced some more cppcheck warnings. Some of these may seem silly, but the way
...
I figure it the changes are harmless at worst, and making them will make it
easier to find real errors in the (still quite long) list of warnings.
svn-id: r47443
2010-01-22 19:05:02 +00:00
Johannes Schickel
af1ba42298
Fix some memory leaks.
...
svn-id: r47284
2010-01-12 21:46:50 +00:00
Marcus Comstedt
40f9506163
The default keycolor for mouse pointers used to be 255.
...
This makes sense as a default for CLUT8 modes, but not really
for anything else. As part of the gsoc2009-16bit merge, the
default was changed to "all ones", with extra code in the SDL
backend to truncate this to the depth of the mode. However,
"all ones" (white) still isn't a very useful default for RGB modes.
So rather than jumping through hoops to provide a bad default,
it's better to remove the default altogether. Engines which relied
on the old default of 255 have been updated to specify it explicitly.
svn-id: r47118
2010-01-07 15:07:36 +00:00
Max Horn
d60b5ca516
Include font.h instead of fontman.h in places that don't need fontman :)
...
svn-id: r46311
2009-12-09 16:46:14 +00:00
Max Horn
f242266f6d
Change a couple places from 'end of namespace' to 'End of namespace', for consistency
...
svn-id: r44634
2009-10-04 21:26:33 +00:00
Max Horn
8ba75fc522
Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things)
...
svn-id: r44495
2009-09-30 16:16:53 +00:00
John Willis
3fb1b79018
Virtual Keyboard: Update default keyboard pack using slightly tweaked versions of the graphics very kindly provided by Carl Mitchell. Also update xml file to make best use of the keyboard graphics and add the 'delete' event in addition the passing backspace back to the calling textarea.
...
svn-id: r42807
2009-07-26 12:58:22 +00:00
Andre Heider
89599dd4ce
split loadKeyboardPack(), fallback to the current dir when searching for packs, and free memory in the case of an error.
...
svn-id: r41705
2009-06-20 11:48:42 +00:00
John Willis
8b1a6b1b6d
Virtual Keyboard: Add some quick changes to the virtual keyboard to activate submit and cancel events from the default lowercase keyboards. This makes it possible to cancel and submit without having to call Common::KEYCODE_F7 again. Sorry for the nasty (temp) graphics.
...
svn-id: r41385
2009-06-08 20:31:49 +00:00
John Willis
2c55c49534
Virtual Keyboard: Fix slight error in earlier commit (failed to rename the XML to match the keyboard pack name).
...
svn-id: r41376
2009-06-08 15:45:03 +00:00
John Willis
e78edd8ef6
Virtual Keyboard: Move vkeybd.zip into packs folder and rename default keyboard pack to vkeybd_default(.zip) with updates to default-events.cpp. Also update vkeybdpack.py to use zlib compression if Python zlib is found. Update GP2X and GP2XWiz bundle files to get new vkeybd_default.zip.
...
svn-id: r41373
2009-06-08 14:47:38 +00:00
John Willis
4ff5a39f75
Virtual Keyboard: Add source files for the default keyboard pack seperate from ZIP archive (makes it easier to version the packs vkeybd.xml and track fixes) and add script to build keyboard pack(s) ZIP's from source files (based on /gui/themes/scummtheme.py).
...
svn-id: r41366
2009-06-08 09:10:12 +00:00
John Willis
e4a3219103
Virtual Keyboard: Fix default keyboard pack to return correct events for ENTER and !.
...
svn-id: r41363
2009-06-08 08:21:18 +00:00
John Willis
f788920af9
Virtual Keyboard: Add 320*240 support (in addition to 640*480) to the default keyboard pack. Also tweak vkeybd.xml to make it a little more like valid XML). New graphics still to come so excuse the ugly keyboard images for now.
...
svn-id: r41303
2009-06-06 20:36:12 +00:00
John Willis
d89fbd5b75
Virtual Keyboard: 'Ab'use the console font to get a font small enough to be usable on 320*240 virtual keyboards for display_area (GUI and BigGUI take up far too much space).
...
svn-id: r41300
2009-06-06 20:05:21 +00:00
John Willis
4ceec0dfbb
Virtual Keyboard: Fix detection of v_align option when used in the keyboard definition.
...
svn-id: r41232
2009-06-06 17:21:50 +00:00
Johannes Schickel
b3c6751b9b
Strip trailing whitespaces in the whole code base.
...
svn-id: r40867
2009-05-24 15:17:42 +00:00
Eugene Sandulenko
0fe9cab48a
Fix bug #2595364 : "Virtual Keyboard: number keys not working"
...
svn-id: r40462
2009-05-11 18:40:59 +00:00
Max Horn
5556fc7f72
Changed Graphics::ImageDecoder to allow custom PixelFormats
...
svn-id: r36026
2009-01-23 23:50:54 +00:00
Max Horn
14c5bbbccf
Renamed Archive::openFile to createReadStreamForMember
...
svn-id: r36021
2009-01-23 04:45:44 +00:00
Max Horn
abc06ca18e
Moved Graphics::PixelFormat into its own header file; turned RGBToColor etc. into methods, and added an operator==
...
svn-id: r35993
2009-01-22 04:35:10 +00:00
Johannes Schickel
ceefbd19b9
Fixed vkbd drawing and GUI drawing on screen change while vkbd is shown.
...
svn-id: r35979
2009-01-21 15:23:30 +00:00
Max Horn
299736c9e1
some code cleanup
...
svn-id: r35966
2009-01-20 23:19:42 +00:00
Max Horn
c210b71876
Moved Surface::blit to backends/vkeybd/virtual-keyboard-gui.cpp
...
svn-id: r35965
2009-01-20 22:52:29 +00:00
Johannes Schickel
4c62af49c2
Removed ImageMan again, now the code uses Graphics::ImageDecoder directly.
...
svn-id: r35960
2009-01-20 18:31:35 +00:00
Johannes Schickel
496ab478a2
Some formatting.
...
svn-id: r35959
2009-01-20 17:38:48 +00:00
Andre Heider
f67bb6c8f1
fixed vkeybd.zip loading
...
svn-id: r35957
2009-01-20 16:13:08 +00:00
Andre Heider
fbfec8e63e
protect all vkeybd code with ENABLE_VKEYBD
...
svn-id: r35956
2009-01-20 16:00:36 +00:00
Andre Heider
60beb35a5a
added the required XML header to vkeybd.zip
...
svn-id: r35955
2009-01-20 15:28:07 +00:00
Andre Heider
1e5165bd84
added proper ImageMan includes
...
svn-id: r35954
2009-01-20 15:27:13 +00:00
Andre Heider
089548fb81
use Surface instead of SurfaceKeyColored
...
svn-id: r35953
2009-01-20 15:26:15 +00:00
Andre Heider
15b3c680da
added ImageMan to vkeybd
...
svn-id: r35952
2009-01-20 15:24:47 +00:00
Max Horn
a27e456ace
Some basic work on the vkeybd code
...
svn-id: r35931
2009-01-20 00:03:35 +00:00