Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-10-06 | SCI32: Clean up scriptWidth/scriptHeight/screenWidth/screenHeight | Colin Snover | |
This removes the unnecessary Buffer subclass and stops most places where the output buffer was being interrogated about dimensions instead of GfxFrameout. | |||
2017-10-06 | SCI32: Clean up GfxText32 | Colin Snover | |
* Rewrap comments to 80 columns * Clarify comments where possible | |||
2017-04-22 | SCI32: Fix bad kPointSize implementation | Colin Snover | |
Fixes text scaling gone mad in Phant2. | |||
2017-03-30 | SCI32: Always reinit GfxText32 statics on game startup | Colin Snover | |
Fixes bad scaling of text when switching between games with different script resolutions. | |||
2017-03-30 | SCI32: Use built-in system font as default font for GfxText32 | Colin Snover | |
Fixes the non-interactive Lighthouse demo. | |||
2016-12-19 | SCI32: Fix incorrect parsing of empty |f| text escape code | Colin Snover | |
This sequence is used in Hoyle5 when viewing the rules for a game. | |||
2016-11-02 | SCI32: Fix incorrect text width calculation of non-ASCII strings | Colin Snover | |
Fixes Trac#9639. | |||
2016-10-09 | SCI32: Clarify some identifiers | Colin Snover | |
transparentColor -> skipColor displace -> origin scaledWidth -> xResolution scaledHeight -> yResolution | |||
2016-09-29 | SCI32: Fix buffer overflow when drawing border to a tiny text bitmap | Colin Snover | |
2016-08-28 | SCI32: Fix rendering of non-ASCII characters | Colin Snover | |
2016-08-01 | SCI32: Add bitmap segment and remove GC option from hunk segment | Colin Snover | |
2016-08-01 | SCI32: Enable optional explicit memory management of hunk entries | Colin Snover | |
Bitmaps in ScrollWindow and Robot code are managed by the kernel and not by game scripts, although they must be able to be referenced through a reg_t. To prevent incorrect GC of bitmaps that are in use but not referenced by any game script, explicit memory management of hunk entries can be enabled. | |||
2016-06-21 | SCI32: Expose a draw buffer on BitmapResource objects | Colin Snover | |
Most of the time, we get a bitmap to draw on it. Exposing a buffer avoids consumers having to create their own all the time, and encourages use of common drawing code exposed by the buffer. | |||
2016-06-21 | SCI32: Fixes to GfxText32 | Colin Snover | |
1. Inline borderSize constant in createFontBitmap for consistency 2. Fix "DrawTextBox GetLongest=0" warning to only appear in games that actually had this check (SQ6 and MGDX) 3. "Fix" implementation of getTextSize for SCI2.1early, which gave lines with word wrap disabled a height of 0 4. Add inlining hints to some methods in BitmapResource that were missing them for some reason | |||
2016-06-21 | SCI32: Implement kScrollWindow | Willem Jan Palenstijn | |
These should be all the actually used subfunctions. Co-authored-by: Colin Snover <github.com@zetafleet.com> | |||
2016-06-21 | SCI32: Make GfxText32::_scaledWidth/Height statics | Willem Jan Palenstijn | |
They were global in SSCI. This way secondary GfxText32 instances (such as in ScrollWindow) use the correct scaling. | |||
2016-06-21 | SCI32: Fix drawText on consecutive control codes | Willem Jan Palenstijn | |
2016-06-21 | SCI32: Fix getTextWidth on consecutive control codes | Willem Jan Palenstijn | |
2016-05-28 | SCI32: Simplify default text width equation | Colin Snover | |
2016-05-28 | SCI: Explicit type conversion. Avoids warnings on number of compilers. | Eugene Sandulenko | |
2016-05-28 | SCI32: Remove unused titled text bitmap code | Colin Snover | |
Titled text bitmaps do not appear to be used by any game scripts. They seem to only be used by the error manager in SSCI, but ScummVM has its own error handling, so we don’t need this implementation. | |||
2016-03-10 | SCI32: Implement GfxText32::getTextCount | Colin Snover | |
2016-03-07 | SCI32: Move in-memory bitmap read/write into its own class | Colin Snover | |
2016-03-06 | SCI32: Implement variable size frame drawing | Colin Snover | |
2016-03-06 | SCI32: Implement kEditText | Colin Snover | |
2016-03-03 | SCI32: Fix misidentification of createFontBitmap(CelInfo &) | Colin Snover | |
2016-03-03 | SCI32: Add all kBitmap signatures | Colin Snover | |
Not all SCI2.1late/SCI3 function signatures are fully known yet, but all subops are now represented in the kernel tables. | |||
2016-03-01 | SCI32: Fix text size calculation scaling to match SCI | Colin Snover | |
The previous code works correctly only for ratios like 2:1 that do not generate remainders. | |||
2016-02-28 | SCI32: Non-titled text bitmap implementation | Colin Snover | |
This implementation is not 100% engine accurate, but it is more accurate than what was there, and hopefully the differences between this and the engine code are merely cosmetic. The known (intentional) differences are: 1. Uses ScummVM rects inside the engine code, converting to/from SCI rects on the kernel edges and when scaling 2. Fewer side effects when performing operations that *should* have been pure from the start (like text dimension calculation). Still not side-effect-free, but at least things like colours and alignment do not need to be reset every time a measurement is taken, unlike in the actual engine. Editor controls and some other kBitmap code are temporarily disabled as a result of changes to GfxText32 until they can be updated to be engine-accurate. | |||
2016-02-27 | SCI: Remove another GK1-related hack | Filippos Karapetis | |
2016-02-18 | SCI: WIP GfxText32 code | Colin Snover | |
This at least prevents SQ6 from crashing when going into the introduction | |||
2014-02-18 | SCI: Make GPL headers consistent in themselves. | Johannes Schickel | |
2012-06-20 | SCI: Remove multibyte character processing code from SCI32 | Filippos Karapetis | |
There are no Japanese/PC-98 SCI32 games, so this code is not needed | |||
2012-06-20 | SCI: Don't attempt to draw line feed characters in SCI32 | Filippos Karapetis | |
Fixes junk in the about dialogs in PQ4 | |||
2012-06-09 | SCI: Handle translucent text planes | Filippos Karapetis | |
Fixes the incorrect flood fill in the Rada Drums screen in GK1 | |||
2012-06-07 | SCI: Initial implementation of kScrollWindow, used in some SCI21 games | Filippos Karapetis | |
This is used in LSL6 hires and SQ6. This initial implementation is hackish and only works in SQ6 (nothing is shown in LSL6) | |||
2012-05-14 | SCI: Implement savegame deletion functionality in SCI32 | Filippos Karapetis | |
This is based on two kernel functions, kMakeSaveCatName and kMakeSaveFileName | |||
2012-03-08 | SCI: Fix GK1 Mac text positioning | Matthew Hoops | |
A regression from the text bitmap code addition | |||
2012-01-15 | SCI: Properly handle negative coordinates in drawTextBitmap() | Filippos Karapetis | |
This fixes occasional crashes when going to the map in GK1. Many thanks to digitall for finding this through Valgrind | |||
2012-01-13 | SCI: Fixed some graphics corruption (black boxes) in the dialogs of GK1 | Filippos Karapetis | |
2012-01-01 | JANITORIAL: Remove SVN tags | Strangerke | |
2011-10-30 | SCI: More work on kEditText | Filippos Karapetis | |
2011-10-29 | SCI: Bugfix for text alignment in SCI32 games | Filippos Karapetis | |
2011-10-29 | SCI: Silence GCC warning | Torbjörn Andersson | |
2011-10-29 | SCI: Fixed the up/down buttons in GK1 | Filippos Karapetis | |
2011-10-29 | SCI: Implemented text alignment for SCI32 | Filippos Karapetis | |
2011-10-29 | SCI: Fixed typo | Filippos Karapetis | |
2011-10-29 | SCI: Some fixes for text positioning in SCI32 games (still WIP) | Filippos Karapetis | |
Also, removed duplicate code | |||
2011-10-28 | SCI: Remove unneeded casts (thanks to wjp for pointing that out) | Filippos Karapetis | |
2011-10-28 | SCI: Use the original text buffer width/height when drawing it | Filippos Karapetis | |
Fixes the display of overlay text |