aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx/gfx_resource.h
AgeCommit message (Collapse)Author
2009-10-28Enclose all of the old graphics code within the INCLUDE_OLDGFX safeguard ↵Filippos Karapetis
(defined in sci.h) svn-id: r45459
2009-10-13Removed some leftover cursor codeFilippos Karapetis
svn-id: r45033
2009-10-07SCI: Reduce header interdepencies once again. Rule of thumb: Never include a ↵Max Horn
header file from another header file unless you absolutely *must* do it; if possible, try to use class forwards instead, and include the headers from source files only svn-id: r44767
2009-10-07Replaced the view loading code with the new view loading functions. EGA view ↵Filippos Karapetis
color translation has been disabled, as it caused palette problems in Codename:Iceman svn-id: r44737
2009-10-06- Unified the screen buffers that are used by the current and the new GUIFilippos Karapetis
- Replaced the FreeSCI line drawing code (which is actually Bresenham) with Graphics::drawLine(), after discussing with waltervn. This shouldn't bring any regressions, as we're no longer offering the option to scale the background at a vector level. After playing through some of the games, I haven't noticed any regressions - Some cleanup svn-id: r44692
2009-09-09Removed/replaced the gfx_pixmap_color structFilippos Karapetis
svn-id: r44017
2009-09-03- Re-added the SCI0 dithering code. Dithering is disabled by default. Added ↵Filippos Karapetis
the 3 dithering modes as an enum (and reorganized them a bit) - Added 3 config options for dithering in the ini file - mainly for purists (config option "dither_mode"): 0 - disabled, 1 - 16 color dithering (Sierra style) and 2 - 256 color dithering - Dithering is now always applied depending on the screen scale (removed the relevant parameter) - Removed the background picture buffering option, used to speed-up room changes. Room changing is quite fast (instantaneous), and the extra memory allocated is not worth the possible speed increase in small devices. Plus.... there is no reliable value to set this option to, so there is no point in letting the user decide what value to put there using guesswork svn-id: r43915
2009-09-01Disabled the FreeSCI PIC0 palette dithering code, for now. It doesn't really ↵Filippos Karapetis
make sense to dither, as Sierra games use up to 256 colors (even the later SVGA ones), and it messes up the result of the FreeSCI graphics filters. Plus, the resulting image looks worse than the original one svn-id: r43901
2009-08-19SCI: Add partial support for Amiga SCI1 games.Walter van Niftrik
svn-id: r43549
2009-08-19SCI: Add autodetection of Amiga views.Walter van Niftrik
svn-id: r43547
2009-07-07- Added auto-detection for EGA graphics. As a result of this, GF_SCI1_EGA ↵Filippos Karapetis
has been removed and versions SCI_VERSION_01_EGA and SCI_VERSION_01_VGA have been merged into SCI_VERSION_01 - Simplified the checks for EGA and VGA graphics - Fixed a bug in script_adjust_opcode_formats() - Simplified the code in GfxResManager::getView() a bit svn-id: r42206
2009-06-22Patch #2810483 (SCI: Convert gfx subsystem headers to Doxygen format), with ↵Max Horn
@brief removed svn-id: r41785
2009-06-06Moved the fake 1x1 mode structure to gfx_resmgr.cpp (where it's actually used)Filippos Karapetis
svn-id: r41215
2009-05-28Merged some of the SCI1 and SCI1.1 view and loop drawing functionsFilippos Karapetis
svn-id: r40961
2009-05-23Added a stub for SetVideoMode(), and fixed some of the palette glitches in ↵Filippos Karapetis
the intro of KQ6 thanks to some comments by waltervn. Also, commented out the bounds rect in gfxr_pic_t, as it's currently unused svn-id: r40808
2009-05-23Fixed the incorrectly placed views in the KQ6 intro, by reintroducing port ↵Filippos Karapetis
bounds in the graphics resource manager and removing two relevant hacks svn-id: r40803
2009-05-17SCI: LSL6 invalid selector workaround is now always active, not just atWalter van Niftrik
startup. Added support for mirrored pic drawing. svn-id: r40648
2009-05-08SCI: Got rid of code for endian adjusting pixmapsMax Horn
svn-id: r40387
2009-04-21Restored the ability to change the active port bound, by moving it inside ↵Filippos Karapetis
gfx_state_t (it makes much more sense for it to be there, instead of inside user-defined settings). Placed notes inside gfxr_draw_pic01() and gfxr_draw_pic11() for the usage of the current titlebar size in there svn-id: r40057
2009-04-21Removed per-picture port bounds, which were set to the global port boundsFilippos Karapetis
svn-id: r40055
2009-04-18Fix outdated commentsWillem Jan Palenstijn
svn-id: r40003
2009-04-03Merged the SCI1 and SCI11 cel drawing functionsFilippos Karapetis
svn-id: r39806
2009-03-17Started objectifying the graphics resource manager (refer to patch #2689887)Filippos Karapetis
svn-id: r39492
2009-03-14Changed the "internal" variable inside gfxr_pic_t to priorityTable (cause ↵Filippos Karapetis
that's what it is), and changed its type to int * to avoid unneeded casts svn-id: r39375
2009-03-10Reverted some of the changes of commit #39192. The cursor reading code has ↵Filippos Karapetis
been placed back in a separate file, and not in the resource manager (but it's now 1 function) svn-id: r39293
2009-03-08Use new Palette class to manager pixmap palettes.Willem Jan Palenstijn
There are some remaining regressions with text colour in SCI1 games, but overall it should fix more than it breaks. svn-id: r39242
2009-03-08SCI: replaced get_int_16 by READ_LE_UINT16, and got rid of inverse_16Max Horn
svn-id: r39212
2009-03-08SCI: Added new header gfx/font.h and removed some dead codeMax Horn
svn-id: r39211
2009-03-07Merged all the different cursor drawing functions inside ↵Filippos Karapetis
gfxr_interpreter_get_cursor() svn-id: r39192
2009-02-26SCI: Changed 'typedef enum { } NAME' into C++-style 'enum NAME { }'Max Horn
svn-id: r38908
2009-02-24Normalized guard #definesEugene Sandulenko
svn-id: r38842
2009-02-23Replaced get_uint_16() with READ_LE_UINT16()Filippos Karapetis
svn-id: r38812
2009-02-22SCI: Replaced two uses of sci_fopen by Common::File; moved is_print_str() to ↵Max Horn
the only spot it is used svn-id: r38791
2009-02-22Whitespace cleanupJordi Vilalta Prat
svn-id: r38783
2009-02-21SCI: Changed typedef struct -> structMax Horn
svn-id: r38752
2009-02-21SCI: Renamed include/gfx_*.h to gfx/gfx_*.h and likewise for sfx header filesMax Horn
svn-id: r38735