Commit Graph

32 Commits

Author SHA1 Message Date
Max Horn
deb4f6b786 cleanup; fix for bug #795942 (COMI: text display off screen) and #785760 (COMI: Lockup/crash on Skull Island)
svn-id: r10144
2003-09-09 20:54:19 +00:00
Paweł Kołodziejski
bbd23e60ce added support for codec1 in nut renderer
svn-id: r10046
2003-09-06 16:42:28 +00:00
Max Horn
49b9a8fc9d follow our coding conventions
svn-id: r8377
2003-06-07 00:49:36 +00:00
Max Horn
4303edcbbd make SmushFont inherit from NutRenderer (TODO: drawChar stuff should be unified, too)
svn-id: r8375
2003-06-07 00:33:46 +00:00
Max Horn
b4da713bfd some more cleanup
svn-id: r8304
2003-06-04 23:51:25 +00:00
Max Horn
565a100c83 some cleanup & refactoring (CJK fonts have proper shadows now, for example); preparations to merge NutRenderer and SmushFont
svn-id: r8303
2003-06-04 23:32:09 +00:00
Max Horn
6fd0e4a07f Patch #747021: DIG&CMI 2 byte charset support (very heavily modified by me; still needs more cleanup but already works well enough)
svn-id: r8293
2003-06-04 14:37:43 +00:00
Max Horn
cb5fb5d403 added a getMaskBuffer method (makes it easier to read some of the code); merged setVirtscreenDirty() into updateDirtyRect(); made setDirtyRange a method of struct VirtScreen
svn-id: r8241
2003-06-01 14:30:26 +00:00
Max Horn
052a482f40 increased nut font debug level to 8
svn-id: r8034
2003-05-27 15:31:13 +00:00
Max Horn
acb35fc915 renamed _scrWidth/_scrHeight -> _roomWidht/_roomHeight, and _realWidth/_realHeight -> _screenWidth/_screenHeight (inspired by MadMoose, but I'll take the blame - still this seems much more logical & intuitive)
svn-id: r7423
2003-05-10 21:49:59 +00:00
Max Horn
68e7ce8143 Patch 713149: Fix OOB access
svn-id: r6893
2003-04-01 15:32:17 +00:00
Max Horn
73f7f88c96 hacked in some crude clipping code for drawChar; let's see if that helps Valgrind
svn-id: r6771
2003-03-08 13:26:20 +00:00
Paweł Kołodziejski
aa3766018f updated copyrights headers
svn-id: r6726
2003-03-06 21:46:56 +00:00
Max Horn
db404cb1c4 load NUT fonts even if they do not specify full 256 chars (e.g. the COMI demo only defines 233 chars
svn-id: r6685
2003-03-04 02:45:50 +00:00
Max Horn
423f26bc27 fix double free bug
svn-id: r6679
2003-03-03 23:57:10 +00:00
Max Horn
405b6fd051 don't error out if a font is missing -> this fixes the COMI demo
svn-id: r6678
2003-03-03 23:39:48 +00:00
Max Horn
756c059a12 fixed crash with non-ASCII chars
svn-id: r6577
2003-01-30 16:02:20 +00:00
Paweł Kołodziejski
8f2b07260a some cleanup
svn-id: r6515
2003-01-19 11:00:21 +00:00
Max Horn
b1c570aa6e made NUT font rendered honor _ignoreCharsetMask
svn-id: r6466
2003-01-15 03:10:28 +00:00
Max Horn
542d0edd6d hacked in font shadow. font shadows are very important for readability. However, the question remainds if this is the right way to achieve it; and also how to know when to *not* draw it...
svn-id: r6301
2002-12-31 21:15:46 +00:00
Max Horn
d65915beff added masking to nut charset renderer
svn-id: r6300
2002-12-31 20:52:11 +00:00
Max Horn
1517ce3894 hack to get actor text color right
svn-id: r6299
2002-12-31 20:17:46 +00:00
Max Horn
561b2c9d7c fixed NUT text render when screen is scrolled
svn-id: r6297
2002-12-31 18:17:05 +00:00
Max Horn
69dfba70eb removed more dead weight
svn-id: r6277
2002-12-30 13:55:36 +00:00
Max Horn
85fe4018bc small optimization
svn-id: r6276
2002-12-30 13:52:16 +00:00
James Brown
29f0d9af8e Error out when fonts are missing
svn-id: r6190
2002-12-27 03:56:34 +00:00
Max Horn
91fc86eede cleanup
svn-id: r6153
2002-12-25 23:18:30 +00:00
Max Horn
5c39a82633 two good rules of thumb: don't use typecasts if you don't have to - type cast have a nasty habit of hiding and causing problems. When a method takes a pointer argument, if possible make it const. :-). Cleanup. Fixed font rendering in CMI: you need to call updateDirtyRect() if you modify the screen...
svn-id: r6143
2002-12-25 20:07:09 +00:00
Max Horn
883cf3f60e use specified color
svn-id: r6133
2002-12-25 14:59:33 +00:00
Paweł Kołodziejski
a01b169434 fixed free buffer before alloc new
svn-id: r6131
2002-12-25 14:46:14 +00:00
Paweł Kołodziejski
3bbfde3259 fixed width font problem in NutRenderer
svn-id: r6128
2002-12-25 14:09:54 +00:00
Paweł Kołodziejski
fb47f2a24b added nut renderer, there is bug with font width, fix later
svn-id: r6126
2002-12-25 13:04:01 +00:00