Commit Graph
27 Commits
Author SHA1 Message Date
Filippos Karapetis 9caacac724 SCI: More work on kEditText 2011-10-30 21:42:33 +02:00
Filippos Karapetis d87b4d88e0 SCI: Bugfix for text alignment in SCI32 games 2011-10-29 18:32:52 +03:00
Torbjörn Andersson 52522b85e9 SCI: Silence GCC warning 2011-10-29 09:38:40 +02:00
Filippos Karapetis e2a2cee092 SCI: Fixed the up/down buttons in GK1 2011-10-29 05:21:47 +03:00
Filippos Karapetis 5509d092be SCI: Implemented text alignment for SCI32 2011-10-29 05:21:46 +03:00
Filippos Karapetis c0d4adbd65 SCI: Fixed typo 2011-10-29 01:42:41 +03:00
Filippos Karapetis ec7b5a79c2 SCI: Some fixes for text positioning in SCI32 games (still WIP)
Also, removed duplicate code
2011-10-29 01:39:37 +03:00
Filippos Karapetis 1cc30572e6 SCI: Remove unneeded casts (thanks to wjp for pointing that out) 2011-10-28 22:54:02 +03:00
Filippos Karapetis d8db7b11c1 SCI: Use the original text buffer width/height when drawing it
Fixes the display of overlay text
2011-10-28 22:20:33 +03:00
Filippos Karapetis f61ea4c9cf SCI: Fixed text background color and text transparency for SCI32 games 2011-10-28 22:20:31 +03:00
Filippos Karapetis 010d12ace8 SCI: Moved the width adjustment outside getPlaneRect() 2011-10-19 23:52:53 +03:00
Filippos Karapetis 28d0901bff SCI: Added a sanity check when drawing text. Older SCI32 saves work now 2011-10-19 21:54:05 +03:00
Filippos Karapetis 513d0be106 SCI: Merged all the code to get/set the NS rect 2011-10-19 20:29:05 +03:00
Filippos Karapetis 88472151b4 SCI: Fixed text length in upscaled SCI32 games 2011-10-15 00:19:39 +03:00
Filippos Karapetis 9f568f5f0b SCI: Fixed display of text surfaces in SCI21 2011-10-14 21:08:26 +03:00
Filippos Karapetis 8609e22e40 SCI: Silenced warnings 2011-10-14 20:30:22 +03:00
Filippos Karapetis b04a069782 SCI: More work on kBitmap (still WIP) 2011-10-14 14:07:01 +03:00
Filippos Karapetis 8d4e562555 SCI: Implemented kBitmap(3) and kBitmap(5). Some cleanup 2011-10-13 14:03:57 +03:00
Filippos Karapetis df63b827bf SCI: Fixed text display in QFG4 2011-10-11 02:53:00 +03:00
Filippos Karapetis a9c6d2a4c4 SCI: Some work on the SCI32 bitmap / font code
- Initial implementation of kBitmap(0)
- Bugfixes for fonts in upscaled games
2011-10-11 02:33:45 +03:00
Filippos Karapetis 3b5b24c8d5 SCI: Removed leftover unused variables 2011-10-11 01:34:32 +03:00
Filippos Karapetis 96ce226967 SCI: Proper implementation of text drawing for SCI2+ 2011-10-11 01:25:08 +03:00
Filippos Karapetis 90a11586e2 SCI: CreateTextBitmap should return a pointer. Also, silenced a warning 2011-10-09 19:56:51 +03:00
Filippos Karapetis 1dcad17988 SCI32: Documented the extra 2 params in kCreateTextBitmap(0) 2011-10-09 19:16:05 +03:00
Filippos Karapetis 227e69ef08 SCI2+: Fixed the implementation of kTextSize(), removing some hacks
Thanks to lskovlun for the fix
2011-10-08 19:11:14 +03:00
Filippos Karapetis 4ad2ebd995 SCI2+: Some groundwork for kTextSize()
The old behavior is currently hacked in inside kernelTextSize(), as the
top of the subtitles frame is wrong if kTextWidth() is properly working...
2011-10-08 17:19:00 +03:00
Filippos Karapetis 41cc1932d2 SCI32: Added an initial skeleton structure for the SCI2 text drawing code
This includes kCreateTextBitmap, and moves all of the text drawing code
into the new GfxText32 class
2011-09-03 14:51:51 +03:00