Commit Graph
63 Commits
Author SHA1 Message Date
Colin Snover 432fd522d2 ENGINES: Remove default1x scaler flag
This flag is removed for a few reasons:

* Engines universally set this flag to true for widths > 320,
  which made it redundant everywhere;
* This flag functioned primarily as a "force 1x scaler" flag,
  since its behaviour was almost completely undocumented and users
  would need to figure out that they'd need an explicit non-default
  scaler set to get a scaler to operate at widths > 320;
* (Most importantly) engines should not be in the business of
  deciding how the backend may choose to render its virtual screen.
  The choice of rendering behaviour belongs to the user, and the
  backend, in that order.

A nearby future commit restores the default1x scaler behaviour in
the SDL backend code for the moment, but in the future it is my
hope that there will be a better configuration UI to allow users
to specify how they want scaling to work for high resolutions.
2017-10-07 12:30:29 -05:00
Johannes Schickel ea21bc939a GOB: Make GPL headers consistent in themselves. 2014-02-18 02:39:34 +01:00
Sven Hesse 5b02192477 GOB: Add Font::hasChar() 2012-07-30 01:44:45 +02:00
Sven Hesse 00fa997039 GOB: Move drawString into Font 2012-07-30 01:24:18 +02:00
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Johannes Schickel 04d4162357 GOB: Adapt to setPalette RGBA->RGB change. 2011-02-14 17:08:32 +01:00
Sven Hesse 113d5a5a9a GOB: Make flags optional in Video::initSurfDesc
svn-id: r55728
2011-02-02 16:48:46 +00:00
Sven Hesse 076b9c9e53 GOB: Remove the vidMode parameter from Video::initSurfDesc
svn-id: r55727
2011-02-02 16:48:04 +00:00
Sven Hesse 9810ec1442 GOB: Make Font::_itemSize unsigned
This fixes a font drawing error in Adibou.

svn-id: r55681
2011-01-31 13:28:55 +00:00
Sven Hesse 8a1e9c8256 GOB: Remove unused old shade functions
svn-id: r55274
2011-01-16 22:30:19 +00:00
Sven Hesse 199b5d06af GOB: Remove unused declarations
svn-id: r55269
2011-01-16 22:27:48 +00:00
Sven Hesse 4f2b58b117 GOB: Remove the now useless VGAVideoDriver
svn-id: r52948
2010-09-30 13:02:50 +00:00
Sven Hesse 51fd528fe5 GOB: Change all drawing to use class Surface
svn-id: r52947
2010-09-30 13:02:16 +00:00
Sven Hesse e68b6e9f15 GOB: Remove dither stuff, commenting out most v6 drawing
svn-id: r52945
2010-09-30 13:00:30 +00:00
Sven Hesse 3823ae285f Giving Font its own real class
svn-id: r42277
2009-07-09 02:54:10 +00:00
Sven Hesse d6c99ae861 Renaming FontDesc::extraData to charWidths
svn-id: r42149
2009-07-05 19:57:55 +00:00
Max Horn 3d3da173b0 GOB: Turned _spritesArray into a Common::Array (of fixed size) to detect out-of-bounds access to it (since access is controlled by scripts, this could (and does :/) easily happen. Also removed an obsolete swap() method, and fixed one case where _spritesArray was indeed accessed out of bounds
svn-id: r41305
2009-06-06 21:37:30 +00:00
Max Horn 0989bb0b90 GOB: Got rid of class ReferenceCounter; changed SurfaceDesc::Ptr to SurfaceDescPtr (a Common::SharedPtr); and changed many SurfaceDesc pointers to references
svn-id: r41299
2009-06-06 20:03:13 +00:00
Max Horn 400d2b10af GOB: Replaced many uses of strdupcpy by Common::String
svn-id: r41077
2009-05-31 16:59:45 +00:00
Sven Hesse 10b1b28610 Splitting a few helper functions out of gob.h
svn-id: r40765
2009-05-21 17:12:33 +00:00
Sven Hesse d0c88ca6a0 Playing half-sized videos fullscreen in the demoplayer
svn-id: r40211
2009-04-29 19:58:43 +00:00
Sven Hesse eaf22dc66c Decreased the dithering LUT's depth to 5 bit per color component.
The results still good and generating it is fast enough to do at each start (so we don't need to save it anymore)

svn-id: r40195
2009-04-29 10:24:00 +00:00
Sven Hesse d8972c3f2c The video now works correctly in the non-interactive Urban Runner demo
svn-id: r40128
2009-04-24 21:30:40 +00:00
Johannes Schickel c8ae5fa9d2 Fixed compilation with g++4.3
svn-id: r35532
2008-12-25 00:16:29 +00:00
Sven Hesse 74024ff3e5 Moving the dither code to graphics/
svn-id: r35526
2008-12-24 15:57:43 +00:00
Sven Hesse 38e7eecb71 Added support for caching the palette LUT to a file
svn-id: r35412
2008-12-17 16:06:16 +00:00
Sven Hesse adae869c8a Experimental semi-transparency for fillRect, used in the green/red menu areas of Urban Runner
svn-id: r35406
2008-12-16 23:27:35 +00:00
Sven Hesse 5f8323bd50 Plugging leaks
svn-id: r35355
2008-12-14 04:33:28 +00:00
Sven Hesse fa07cfe7c6 Text now works in Urban Runner
svn-id: r35311
2008-12-12 04:31:01 +00:00
Sven Hesse 4ec3826080 Working (minus text) menu in Urban Runner
svn-id: r35310
2008-12-12 02:44:34 +00:00
Sven Hesse c65886a3ea Changing the Urban Runner sprite drawer to work more correctly. It does use YUV data, but I can use the ditherer there
svn-id: r35308
2008-12-11 21:57:47 +00:00
Sven Hesse c7fa7f888a On second thought, an octree only works if the color to look up is in the palette.
So using a table-based approach to find the nearest color now, using only the upper 6 bits to stop the table from getting too large. It still takes noticeable time to build it. :/
But as a result, the video actually looks okay now...

svn-id: r35298
2008-12-11 03:06:43 +00:00
Sven Hesse 5d9c8b7c47 Changing the GobEngine to use its dirty rects also for OSystem-copies, instead of relying on kFeatureAutoComputeDirtyRects
svn-id: r35239
2008-12-04 18:38:55 +00:00
Sven Hesse 741364602c Urban Runner stubs
svn-id: r34286
2008-09-02 20:15:42 +00:00
Sven Hesse 5d11b8f6ed Ooops, forget that one
svn-id: r32163
2008-05-17 23:59:56 +00:00
Sven Hesse 257aaa3ced Restructured saving/loading and added a stub for Woodruff
svn-id: r31989
2008-05-10 20:59:43 +00:00
Sven Hesse edff41b1c3 Correct o2_initScreen() for Woodruff (screen positioning, clipping and cursor limiting)
svn-id: r31846
2008-05-03 20:08:46 +00:00
Paul Gilbert 6eb64102a4 Fix to remove a tab character from the GPL header
svn-id: r30238
2008-01-05 12:45:14 +00:00
Sven Hesse 2d15e4af78 Checking in patch #1777241 by Uwe Ryssel (GOB: Some optimizations for slow computers)
svn-id: r28664
2007-08-19 17:26:06 +00:00
Sven Hesse d31d50ac3d Possible fix for bug #1767748 (Gobliiins is not fast as it can be on slow computers)
svn-id: r28456
2007-08-05 01:42:38 +00:00
Max Horn e1bcd70436 Re-added __attribute__(packed)
svn-id: r27830
2007-07-01 18:18:43 +00:00
Max Horn 218e132e37 Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
svn-id: r27024
2007-05-30 21:56:52 +00:00
Sven Hesse 70bae60c44 Removed some more superfluous semicolons in the gob engine
svn-id: r26595
2007-04-25 19:52:26 +00:00
Max Horn 00b9bc7b36 Removing lots of superfluous semicola (see mail by David Weinehall on scummvm-devel)
svn-id: r26594
2007-04-25 19:31:23 +00:00
Sven Hesse 28df3debfd - Fixed handling of the case split screen + vertical scrolling area
- Added manual vertical scrolling
- Restricting the mouse cursor to the upper part of the split screen now

svn-id: r26547
2007-04-19 13:51:57 +00:00
Sven Hesse a17df6e4c6 Some Gob3 fixes:
- wrong positioning of the inventory
- walking
- close-up fadeing in the CD version

svn-id: r26390
2007-04-06 13:30:09 +00:00
Sven Hesse ce8bfbb46e Implemented scrolling and split screen (for the text field, the bottom 40 lines) in Gob3
svn-id: r26387
2007-04-05 19:20:12 +00:00
Sven Hesse 53119f2c5d "char *" -> "byte *" where appropriate
svn-id: r26369
2007-04-02 11:05:09 +00:00
Sven Hesse 623ca88022 - Properly implemented the ImdPlayer
- Some more clean-up

svn-id: r26316
2007-03-29 17:55:39 +00:00
Sven Hesse 2dc7cb2cd4 Major clean-up, including:
- Cutting down the code-dup
- Plucking leaks
- Removing dead/unused code
- Properly naming "word_2342F"-style variables and functions (removing the warnings alongside)
- Fleshing out the "stubby" functions
- Moving functions and variables to more appropriate/logical places
- Re-ordering functions and variables
- Re-structuring functions
- Moving the IMD stuff into a new "Imd" class in the new imd.cpp/.h (still to be completely implemented and cleaned up)
- Formatting
- Getting rid off the classes "Anim", "Pack" and "Timer", along with their files

svn-id: r26252
2007-03-20 14:51:57 +00:00