38 Commits

Author SHA1 Message Date
Filippos Karapetis
7c84cca81d Moved some more debug commands to ScummVM's coneole and removed some unused code
svn-id: r41198
2009-06-05 19:04:14 +00:00
Filippos Karapetis
98f64cfa2f Removed the gfxw_new_visual and gfxw_new_port wrappers, moved _kfuncTable inside the Kernel class and moved gfxw_find_port inside the GfxVisual struct
svn-id: r41125
2009-06-02 14:16:59 +00:00
Torbjörn Andersson
0999534749 The error() and warning() functions add ! and newline automatically. (I didn't
look at debug() and debugC(), since I'm really bored with this now. :-)

svn-id: r41061
2009-05-31 10:02:16 +00:00
Filippos Karapetis
15d5b8436e Removed the "sfx_debuglog" command. Sound debug messages are now shown if kDebugLevelSound is specified
svn-id: r41039
2009-05-30 17:53:12 +00:00
Filippos Karapetis
69582f0179 Moved 3 more debug commands to console.cpp ("simkey", "segment_table" and "show_map") and removed the GFXWC macro. Some cleanup
svn-id: r41032
2009-05-30 14:30:39 +00:00
Filippos Karapetis
c7c9f05cac Removed/replaced BREAKPOINT
svn-id: r41025
2009-05-30 10:42:08 +00:00
Filippos Karapetis
71cc92ab7f Fixed a nasty bug in the GUI code, which caused the windows in PQ3 and SCI1.1 games to be erased incorrectly
svn-id: r40889
2009-05-25 13:25:31 +00:00
Filippos Karapetis
e940bcff23 - Simplified SCI version detection a bit and clarified the different version feature flags (not used yet)
- Removed the version verification functions (they were only used for two specific cases, but the SCI executable reader is able to detect the exact SCI game version anyway, so there is no point in having these)
- Removed the empty GameFlags structure and replaced it with a 32-bit integer instead

svn-id: r40524
2009-05-13 16:52:41 +00:00
Max Horn
0255cd0213 SCI: Removed sci_memory.h/.cpp
svn-id: r40514
2009-05-12 23:30:10 +00:00
Max Horn
dc29c404a7 SCI: Work around an 'Array used after being disposed' bug that occurs when a GfxVisual gets disposed
svn-id: r40327
2009-05-05 12:33:11 +00:00
Max Horn
6322478508 SCI: renamed gfx_text_handle_t -> TextHandle; changed some string code to use Common::String
svn-id: r40162
2009-04-27 14:21:39 +00:00
Max Horn
5881abb213 SCI: Removed unused vars; doxygenified some comments; cleanup
svn-id: r40159
2009-04-27 12:29:51 +00:00
Max Horn
356288ce8d SCI: Rewrote dirty rect code to use Common::List
svn-id: r40156
2009-04-27 11:12:25 +00:00
Max Horn
b73301748a SCI: Renamed gfx_state_t -> GfxState
svn-id: r40155
2009-04-27 11:12:08 +00:00
Max Horn
6f60e0dd48 SCI: Turned GfxWidget::draw function pointer into virtual method
svn-id: r40115
2009-04-24 14:22:14 +00:00
Max Horn
bd9a44969f SCI: Turned GfxWidget::tag function pointer into virtual method
svn-id: r40114
2009-04-24 14:21:16 +00:00
Max Horn
dadae13545 SCI: Turned GfxWidget::print function pointer into virtual method
svn-id: r40113
2009-04-24 14:20:31 +00:00
Max Horn
6343b2eee0 SCI: Changed GfxWidget::set_visual function pointer to virtual method setVisual
svn-id: r40108
2009-04-24 10:48:51 +00:00
Max Horn
ebcfd9b016 SCI: Got rid of GFXW() macro; turned GfxWidget::widfree into destructors
svn-id: r40107
2009-04-24 10:48:25 +00:00
Max Horn
80794a6b5a SCI: font_nr -> _font
svn-id: r40106
2009-04-24 10:47:38 +00:00
Max Horn
22a803cc69 SCI: Rewrote the port_refs code (fixing at least three serious bugs in it. Wow, crappy)
svn-id: r40105
2009-04-24 10:46:46 +00:00
Max Horn
9445439c4f SCI: Renamed gfxw_widget_t and subtypes to GfxWidget etc.
svn-id: r40104
2009-04-24 10:46:20 +00:00
Max Horn
86b3657476 SCI: Started to C++ify the gfxw_widget_t codebase
svn-id: r40103
2009-04-24 10:45:09 +00:00
Filippos Karapetis
c3dc501f23 Removed the non-working Chrono port code, after discussing with Lars
svn-id: r39819
2009-04-03 22:03:06 +00:00
Filippos Karapetis
b4b0e35841 Remove a workaround in the line drawing function - it shouldn't be necessary anymore
svn-id: r39697
2009-03-25 23:26:24 +00:00
Filippos Karapetis
831d3d542e Changed the primitive equality check to not use Common::Rect, as the two primitives being compared might not actually be rectangles (e.g. they may be lines, in which case the "width" and "height" might be negative)
svn-id: r39695
2009-03-25 23:14:08 +00:00
Filippos Karapetis
34d75e455b - Renamed gfx/sci_widgets.* to gfx/gfx_gui.*, as these files contain GUI elements mostly, like windows and status bars
- Moved kWindowAutoRestore from gfx_widgets.h to gfx_gui.h

svn-id: r39687
2009-03-25 12:52:03 +00:00
Filippos Karapetis
11601f88e1 Fixed issues with commit #39449, fixing some graphical glitches with the GUI widgets
svn-id: r39534
2009-03-19 19:52:05 +00:00
Filippos Karapetis
9ec640633d It seems that the SCI GUI code tries to show rectangles with negative height. Added some sanity checks for this, but the *real* problem lies elsewhere
svn-id: r39451
2009-03-16 19:19:59 +00:00
Filippos Karapetis
0e8dfe09c9 Replaced some rect_t operations with our common ones. For now, two helper functions are used to easily change types between Common::Rect and rect_t, until rect_t is removed
svn-id: r39449
2009-03-16 15:36:09 +00:00
Filippos Karapetis
4bd84b7311 Replaced "xl" with "width" and "y1" with "height" in places where rectangles are used
svn-id: r39435
2009-03-16 00:07:12 +00:00
Max Horn
642bad22d8 SCI: Removed most uses of the 'inline' keyword. It is usually better to let the compiler figure out what to inline. As it is, most of these looked as if they were randomly placed ;)
svn-id: r39352
2009-03-12 03:26:47 +00:00
Willem Jan Palenstijn
ced40b2266 Use new Palette class to manager pixmap palettes.
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-08 20:17:01 +00:00
Max Horn
2dfae035ac SCI: Reduced header interdependencies some more
svn-id: r39202
2009-03-07 19:23:47 +00:00
Greg Frieger
cbb6f91967 SCI1: Improved color mapping when drawing line/box/text. Text with transparent background now displays correctly.
svn-id: r39089
2009-03-03 14:27:49 +00:00
Johannes Schickel
9cc4f5630e Fix warnings.
svn-id: r38972
2009-02-28 16:06:32 +00:00
Eugene Sandulenko
d53c75fc8f Fix code formatting
svn-id: r38930
2009-02-27 12:59:02 +00:00
Max Horn
0be30cdc5d SCI: Renamed gfx/gfx_operations.h to gfx/operations.h (matching the source file); moved include/sci_widgets.h to gfx/ (matching location of source file); renamed gfx/widgets.cpp to gfx/gfx_widgets.cpp (matching the header)
svn-id: r38852
2009-02-24 20:39:34 +00:00