Commit Graph
4144 Commits
Author SHA1 Message Date
Max Horn 25d56525c8 Replace OSystem::hasAlpha with a feature flag
svn-id: r17695
2005-04-19 20:35:48 +00:00
Max Horn 2cfb9322e2 Added new (optional) OSystem::initBackend() method; this (and its usage) fixes bugs #1160977 and #1184664
svn-id: r17694
2005-04-19 20:22:50 +00:00
Andrew Kurushin b31ee93c75 vc compile warn
svn-id: r17637
2005-04-16 17:05:14 +00:00
Max Horn 839c8add38 Get rid of errno; add some (optional) error checking facilities to SaveFile classes (they are ugly, and to simple, but better than nothing)
svn-id: r17589
2005-04-13 18:36:55 +00:00
Max Horn e79c168d35 split SaveFileManager::openSavefile and class SaveFile into two, each, one for loading and one for saving
svn-id: r17517
2005-04-10 15:13:40 +00:00
Max Horn 3aba4997f4 Moved the GFX_ constants to sdl-common.h, where they belong.
svn-id: r17479
2005-04-09 13:31:47 +00:00
Max Horn 37c0af9a2d A common platform alias for 'Windows' is 'win'
svn-id: r17478
2005-04-09 13:13:04 +00:00
Eugene Sandulenko 249134ede3 Add NES platform
svn-id: r17454
2005-04-08 20:49:13 +00:00
Max Horn 359c39722b Added some comments on how the graphics in OSystem are meant to work, based partially on a nice mail by Marcus, and adding in some information of my own. Certainly could be improved in style, language, content and everything, but once again it should be better than nothing...
svn-id: r17359
2005-04-03 21:38:39 +00:00
Max Horn eb6301e562 Added some overlay method comments. They could be better and explain more, but it's at least a start
svn-id: r17358
2005-04-03 21:07:49 +00:00
Marcus Comstedt ac54a40ea2 Added possibility to have an overlay with an alpha channel.
svn-id: r17353
2005-04-03 19:40:54 +00:00
Robert Göffringmann bd81feb996 Playstation2 Port: initial import
svn-id: r17305
2005-03-31 05:35:04 +00:00
Eugene Sandulenko 9c772ce7d8 Forgot to init _encbyte in MemoryReadStream.
svn-id: r17301
2005-03-30 22:01:17 +00:00
Eugene Sandulenko 7ae3da082e Support for direct reading from NES ROM:
o extend MemoryReadStream with XOR facility
  o implement MemoryWriteStream
  o _fileHandle now is a reference to BaseScummFile class and is created on the fly
  o implement ScummNESFile class which is basically extract_mm_nes utility
  o update NES MM md5's due to above changes

NOTE: to run MM NES now you need to remove *.LFL files and (probably) rename
ROM to standard conventional name 'Maniac Mansion (XXX).nes'

svn-id: r17300
2005-03-30 21:59:12 +00:00
Max Horn 4daf4c47b8 Fix method names to comply to our coding standards
svn-id: r17134
2005-03-14 08:24:39 +00:00
Max Horn 4b5b9bc984 mouse cursor palette better fits into the 'mouse' category than in the 'graphics' category (IMO)
svn-id: r17102
2005-03-12 16:33:03 +00:00
Eugene Sandulenko 7bb53f3bf1 Patch #1013937 "OSystem layer with bigger resolution". Now you will always
get at least 640x400 window. And finally we have means of implementing
nice looking GUI.

Also updated all backends. If your backend has ability to run with 640x400 or
640x480 resolution then read patch tracker item to find out details. Other
port maintainers shouldn't worry, as this patch doesn't affect them, they
still get their 320x200.

svn-id: r17055
2005-03-09 23:07:32 +00:00
Travis Howell 07aa92063a Add Amiga renderer mode for EGA games.
svn-id: r17019
2005-03-07 00:39:48 +00:00
Max Horn 7f5db33943 Obsolete TODO ;-)
svn-id: r17004
2005-03-06 13:22:53 +00:00
Eugene Sandulenko e4bd258fd6 Fix bug which led to an endless loop if 1.5x scaler is fed with odd value.
svn-id: r17003
2005-03-06 11:28:10 +00:00
Eugene Sandulenko 50f6eb740c Distinguish between green and amber hercules. Now specify it via hercGreen
and hercAmber. Updated documentation accordingly.

svn-id: r16975
2005-03-02 21:46:51 +00:00
Max Horn 039b2b3a20 Verify domain names as they are passed into the config manager (better to crash here, early, than to corrupt a user's config file)
svn-id: r16862
2005-02-22 18:11:36 +00:00
Eugene Sandulenko f420dd3b78 Implement OSystem method disableCursorPalette(bool disable) as mentioned
in patch #1013937 (OSystem layer with bigger resolution).

svn-id: r16820
2005-02-20 02:04:45 +00:00
Eugene Sandulenko 27469a1896 Patch #1121337 (CGA rendering in early LEC titles).
Differences against patch:
  o Updated documentation
  o Fixed text colors
  o Implemented Hercules dithering

Ditherers are based on loom ega and monkey ega, so for zak and mm they're
wrong, i.e. these games look better than with original ditherers.

TODO:
  Proper ditherers for zak & MM
  EGA ditherers for VGA SCUMM v5 games

svn-id: r16816
2005-02-20 00:17:22 +00:00
Paweł Kołodziejski 373b33b22a compatible version for wince
svn-id: r16813
2005-02-19 15:35:05 +00:00
Andrew Kurushin 05f4bf5151 removing ZLIB_WINAPI from scummsys.h
ZLIB_WINAPI macro needs only than you want to
build VisualBasic compatible ZLIBWAPI.DLL with
WINAPI(STDCALL) calling convetion.

svn-id: r16803
2005-02-18 00:13:37 +00:00
Eugene Sandulenko 78ee0bfdaf Mouse part of big patch #1013937 (OSystem layer with bigger resolution)
svn-id: r16800
2005-02-17 23:01:00 +00:00
Max Horn 4e66139a4e Added String::hasSuffix and hasPrefix
svn-id: r16744
2005-02-06 19:00:59 +00:00
Max Horn abd12dd1b6 Use class Mutex instead of MutexRef
svn-id: r16679
2005-01-28 22:05:51 +00:00
Andrew Kurushin dcbe77c579 fix VC7.1 compilation
svn-id: r16664
2005-01-28 14:46:12 +00:00
Paweł Kołodziejski c0c9a68fe5 emsvc4 need public access, hmmm...
svn-id: r16650
2005-01-27 21:29:29 +00:00
Max Horn aa9debccec Forgot to commit this
svn-id: r16567
2005-01-15 23:08:12 +00:00
Max Horn 541076d8db Added a convenience class 'Mutex'
svn-id: r16566
2005-01-15 22:41:23 +00:00
Max Horn fcad363886 Get rid of the ConstString class
svn-id: r16564
2005-01-15 21:42:59 +00:00
Andrew Kurushin f17f5e3cae last wjp suggested patch - helps reenable "no definition for inline function" warning
svn-id: r16543
2005-01-11 20:02:12 +00:00
Torbjörn Andersson 4dda4eb31b On Fingolfin's suggestion I put back the inclusion of util.h into Rect, for
MIN() and MAX(). I then removed util.h from a bunch of files which I don't
think need it any more. (Please let me know if I got too blood-thirsty!)

This reverts some of the changes I made this morning.

svn-id: r16541
2005-01-11 13:25:02 +00:00
Torbjörn Andersson 13e2c224c8 This is probably not the optimal fix, but at least ScummVM compiles again.
svn-id: r16538
2005-01-11 08:06:19 +00:00
Max Horn 5c48717dd2 Remove some more header dependencies
svn-id: r16530
2005-01-10 22:35:43 +00:00
Max Horn 6f6668ce21 Reduce dependencies on common/savefile.h from 88 to 14
svn-id: r16528
2005-01-10 22:18:39 +00:00
Max Horn cffd917165 system.h was being included in tons of places, without any good reason; reduced this (total dependencies on system.h went down from 193 to 85 files)
svn-id: r16527
2005-01-10 22:06:49 +00:00
Max Horn e794581308 Moved mutex stuff into a seperate header
svn-id: r16526
2005-01-10 22:04:04 +00:00
Max Horn 788c828026 yet another attempt to get makeInstance working for gcc 3.3, gcc 3.2, and MSVC (thanks to wjp for the suggestion). Works fine with GCC 3.2 and 3.3
svn-id: r16525
2005-01-10 21:06:49 +00:00
Andrew Kurushin 0e4711cb81 some disabled warning moved from .vcproj to #pragma with comments
(can anyone update .vcproj for vs2002&vs2005?)

svn-id: r16508
2005-01-09 17:22:55 +00:00
Max Horn 0423866e0a Ensure these headers match the rest of ScummVM
svn-id: r16505
2005-01-09 16:07:53 +00:00
Torbjörn Andersson 9d1f4ff1e6 Since _pos is unsigned it's always >= 0, so testing for negativity will
generate a warning in GCC.

svn-id: r16496
2005-01-09 14:57:41 +00:00
Max Horn bc44b5ec15 Added new interface SeekableReadStream
svn-id: r16493
2005-01-09 01:41:43 +00:00
Andrew Kurushin 6cde0f1de6 turn off "no definition for inline function" warning
svn-id: r16458
2005-01-06 19:35:11 +00:00
Andrew Kurushin 3b61b06aee - remove "extern" before OSystem::makeInstance
svn-id: r16457
2005-01-06 19:34:07 +00:00
Max Horn 5d88c39549 Modify the singleton code once more to help overcome an issue with MSVC 7 (see also patch #1095133)
svn-id: r16454
2005-01-06 18:38:34 +00:00
Max Horn 74bf578bda Changed the singleton code to allow for custom object factories; this allowed me to change OSystem to use the singleton base class, too
svn-id: r16404
2005-01-01 19:19:06 +00:00