Commit Graph
4144 Commits
Author SHA1 Message Date
Paweł Kołodziejski d62ff5dca7 fixed warnings
svn-id: r14603
2004-08-14 09:10:14 +00:00
Eugene Sandulenko cdb88416a8 Fix bug in FixedStack.pop(). Returned wrong value.
svn-id: r14567
2004-08-12 21:49:48 +00:00
Eugene Sandulenko e31aa60730 Fix compilation of remove_at() in array.h. It was never tested before.
Make stacks' pop() return top value, not just move stack pointer.

svn-id: r14565
2004-08-12 21:33:59 +00:00
Torbjörn Andersson 039e6dc8db Relaxed the assertion for the 3x scaler a bit. Since it uses pointers to
uint16, it should be enough that dstPtr is even; it doesn't have to be a
multiple of four.

The old assertion failed for me when I used the 3x scaler without aspect
ratio correction.

svn-id: r14536
2004-08-10 17:46:04 +00:00
Max Horn 809c3bd943 Fixed variable access in the debugger
svn-id: r14523
2004-08-08 22:44:15 +00:00
Max Horn 5564f36b0e Slightly optimiized Normal2x
svn-id: r14519
2004-08-08 15:45:58 +00:00
Jonathan Gray f3ddfd4080 fix compilation
svn-id: r14510
2004-08-08 03:12:23 +00:00
Travis Howell 1134ea5c85 Fix compile for now, include doesn't exist in mingw.
Should be checked for in configure

svn-id: r14507
2004-08-07 23:49:34 +00:00
Gregory Montoir db6e7ae2ca centers the scaled bitmap and fix the scaling of borders for ASM version)
svn-id: r14505
2004-08-07 17:21:53 +00:00
Max Horn f122dd6fb3 Fix scaling of the borders of each given rect (for non-ASM version)
svn-id: r14504
2004-08-07 16:47:25 +00:00
Gregory Montoir 0f6242dfaf should be 16 not 8
svn-id: r14503
2004-08-07 16:23:16 +00:00
Max Horn 2a9c6f6d5f Base our advmame scalers on the official Scale2x source - this way we can easily update to new version and benefit from their optimizations (e.g. MMX support)
svn-id: r14502
2004-08-07 16:04:43 +00:00
Max Horn 61bf615168 Try the current dir last, not first
svn-id: r14469
2004-08-05 11:10:27 +00:00
Max Horn cef2de6a69 Fixed bug #1001069; clarified/simplified some error messages
svn-id: r14375
2004-07-31 09:34:10 +00:00
Max Horn 1db27f0203 slightly more informative error messages in class File
svn-id: r14345
2004-07-26 22:53:29 +00:00
Max Horn 17ec7c5d6a Turn various File class methods into virtual methods, to allow overloading
svn-id: r14341
2004-07-26 17:06:39 +00:00
Max Horn 3381b831eb Allow subclasses to modify File class members (e.g. to set _ioFailed); change some warnings into errors
svn-id: r14302
2004-07-23 01:39:05 +00:00
Max Horn 0605918ab4 Small tweaks for the String class
svn-id: r14293
2004-07-21 14:20:37 +00:00
Bertrand Augereau 52701d581b Changed order of initialisation in XORReadStream::XORReadStream() to match order of declaration, to avoid a pedantic warning
svn-id: r14273
2004-07-19 10:20:00 +00:00
Max Horn 006cac577d Simplified fopenNoCase (and reduced the code redundancy)
svn-id: r14252
2004-07-18 17:08:10 +00:00
Eugene Sandulenko 3423c617a1 Fix bug introduced with last addDefaultDirectory() change. It prevented
lowercase files from opening.

svn-id: r14148
2004-07-01 12:18:28 +00:00
Eugene Sandulenko 2c687d3388 Make md5_file() work regardless file name case and within arbitrary
directory.

svn-id: r14123
2004-06-29 12:07:15 +00:00
Max Horn a5df4fba77 Added simple ref-counting to the File class
svn-id: r14106
2004-06-28 22:34:22 +00:00
Max Horn 53af3dc670 Enhanced default directory support in the File class; now one can specify arbitrary many default search directories
svn-id: r14095
2004-06-28 00:06:31 +00:00
Max Horn 4744538752 Added operator + for strings
svn-id: r14093
2004-06-27 23:58:41 +00:00
Max Horn b8ad54b3af Reversed param order of File::open() -- this allowed me to get rid of a few more getGameDataPath() calls
svn-id: r14090
2004-06-27 22:14:35 +00:00
Max Horn a461c7550e irrelevant tweak, but I am a const-junkie :-)
svn-id: r14089
2004-06-27 22:04:19 +00:00
Max Horn a1b82d8e13 Cleanup for MemoryReadStream; made it match the File-class interface
svn-id: r14086
2004-06-27 21:30:33 +00:00
Max Horn e5f90509a6 Cleaned up SaveFileManager stuff a little bit
svn-id: r14056
2004-06-25 22:11:48 +00:00
Eugene Sandulenko 264dc1349b Extended ReadMemoryStream class with seek method
svn-id: r14030
2004-06-24 14:06:22 +00:00
Max Horn 55ad317aad As the comment above this code section states, the only reason we accept 1,2,3 here is for backward compatibility. 4 and 5 never were legal values, hence they shouldn't be detected
svn-id: r14015
2004-06-23 10:23:44 +00:00
Eugene Sandulenko 53a0eb87f1 Fixed recognition of command-line --platform option
svn-id: r14005
2004-06-23 02:14:19 +00:00
Eugene Sandulenko a350fcda0d Implement 24-bit read from memory functions
svn-id: r14002
2004-06-22 23:52:31 +00:00
Eugene Sandulenko 7d1b755086 Applied patch submitted by cyx to bug #961365 (Assembly versions of HQ2x and HQ3x scalers), off-by-one error.
svn-id: r13906
2004-05-30 22:16:59 +00:00
Chris Apers 66fd8f8658 New PalmOS includes
svn-id: r13888
2004-05-25 14:44:02 +00:00
Paweł Kołodziejski 4a93fa1421 we dont use more timers than 2
svn-id: r13850
2004-05-23 19:16:35 +00:00
Max Horn cff4e1d49f Tweaks (Morphos & Palm backends badly need updating :-/)
svn-id: r13848
2004-05-21 20:43:07 +00:00
Paweł Kołodziejski 6801dd2eef fixed mingw compilation
svn-id: r13846
2004-05-21 17:30:51 +00:00
Eugene Sandulenko d33b24036e Added assembly versions of HQ2x and HQ3x scalers.
svn-id: r13844
2004-05-21 02:08:48 +00:00
Max Horn 7804b57632 Added default iterator constructor, for convenience
svn-id: r13808
2004-05-08 19:34:06 +00:00
Eugene Sandulenko b7e62e4b61 Extend setMouseCursor with additional keycolor parameter. Lets saga use 255
as white color. Made this function more safe by copying cursor data to
newly created buffer.

svn-id: r13777
2004-05-05 02:32:46 +00:00
Max Horn 5d0f0ea0c6 Added generic variable size stack class - COMPLETELY UNTESTED. Really should add some unit tests for this...
svn-id: r13776
2004-05-05 01:19:42 +00:00
Eugene Sandulenko b9ebd68022 Enchance ReadStream and MemoryReadStream with 24bits operations as well
as tell() and rewind() methods, as needed by SAGA engine.

svn-id: r13772
2004-05-04 03:27:00 +00:00
Eugene Sandulenko f7f485464d Well, now we use MemoryReadStream at least in SAGA engine.
Concept proved itself to be elegant and successful

svn-id: r13770
2004-05-03 23:08:22 +00:00
Max Horn 33ef0d0a4b Added signed read/write methods to the Stream classes
svn-id: r13680
2004-04-29 20:28:42 +00:00
Max Horn 795a735a31 Comment about how our Rect class works. Note: the SAGA engine currently does use the alternate approach to rects! Hence we can't currently use all those nice and nifty helper methods from Common::Rect in SAGA.
svn-id: r13626
2004-04-25 16:16:21 +00:00
Max Horn 9defe4fc18 Removed XOR encoding stuff from File class; instead the new Scumm::XORFile class provides this functionality now
svn-id: r13597
2004-04-17 16:29:03 +00:00
Max Horn ae50adfd31 Fix byte reads
svn-id: r13596
2004-04-17 12:42:40 +00:00
Max Horn e17a15d96e Introduce ReadStream and WriteStream (as explained in my File class design mails on scummvm-devel)
svn-id: r13595
2004-04-17 09:57:15 +00:00
Max Horn 40afd9b566 Fixed const iterator
svn-id: r13591
2004-04-16 22:04:32 +00:00