Commit Graph
1475 Commits
Author SHA1 Message Date
Martin Kiewitz c893ba1508 SCI: replaced value with constant when checking if controls are selected
svn-id: r48795
2010-04-25 15:44:11 +00:00
Martin Kiewitz 482e89ea9f SCI: reset cursor state when kDrawControl gets called on textedit controls, fixes cursor placement issues
svn-id: r48794
2010-04-25 15:20:52 +00:00
Martin Kiewitz aaaab9ec34 SCI: fix regression of r48659 - now calculating menu width and splitting text on kernelDrawMenuBar() as well - fixes menu not displaying all the time in hoyle 1&2
svn-id: r48791
2010-04-25 09:35:34 +00:00
Martin Kiewitz 194bdd9b83 SCI: reverting r48787 port updates were actually introduced (heard that before) in SCI1. I used the outdated wiki before and that one lists qfg2 and xmas90ega being SCI01. They are actually SCI1
svn-id: r48789
2010-04-24 21:45:17 +00:00
Martin Kiewitz cbd8faa82e SCI: r48786 port updates were actually introduced during SCI01, qfg2 and xmas90ega only. We enable port updates only for non-multilingual SCI01 games now - fixes percentage bar for qfg1 japanese as well
svn-id: r48787
2010-04-24 20:41:26 +00:00
Martin Kiewitz 0422560c5c SCI: beginUpdate()/endUpdate() of ports were introduced inside kAnimate() in SCI01 - fixes percentage bar not showing up in qfg1ega
svn-id: r48786
2010-04-24 20:08:03 +00:00
Martin Kiewitz 61a57f53e5 SCI: added special comments about r48784
svn-id: r48785
2010-04-24 16:09:17 +00:00
Martin Kiewitz eb048f48b8 SCI: changing GetLongest() on kanji (again) hopefully it's now working as in sierra sci :P
svn-id: r48784
2010-04-24 15:50:23 +00:00
Martin Kiewitz ca93a6ce9c SCI: document skipping over breaking spaces done in r48781
svn-id: r48782
2010-04-24 12:53:14 +00:00
Martin Kiewitz 02b9b10199 SCI: change the way we handle breaking spaces based on how sierra sci does it, revert r48778/r48779
svn-id: r48781
2010-04-24 12:49:22 +00:00
Martin Kiewitz b8a5507a17 SCI: fix for regression of r48778: do add spaces to width, if we are at ending of text - the whole change may be wrong altogether
svn-id: r48779
2010-04-23 21:57:29 +00:00
Martin Kiewitz 62833a3fd3 SCI: text16 ::Width() doesn't add ending spaces to the width anymore, sierra sci also doesn't do this - fixes windows being too large sometimes
svn-id: r48778
2010-04-23 21:18:16 +00:00
Martin Kiewitz 35b21a94ff SCI: pc98 sierra interpreter had special code, that circumvents having a japanese punctuation char as first char on new lines - we do so now as well
svn-id: r48777
2010-04-23 13:51:59 +00:00
Martin Kiewitz 1243217547 SCI: added additional comment for setOrigin() commit (from waltervn), after doing some test with sierra interpreter
svn-id: r48775
2010-04-22 18:12:25 +00:00
Martin Kiewitz 4fbea9d02d SCI: make setOrigin() for ports behave like in sierra sci, fixes qfg1ega character screen issues ("moving" controls), fixes jones/vga 1 pixel-off windows
svn-id: r48772
2010-04-22 17:41:04 +00:00
Martin Kiewitz e25651a467 SCI: SCI1LATE+ checks for STYLE_USER, versions before check for STYLE_USER|STYLE_TRANSPARENT
svn-id: r48771
2010-04-22 16:55:46 +00:00
Martin Kiewitz 2242ee33ac SCI: get color white instead of hardcoded 255 inside openPort(), fixes not working inverting of button controls on qfg1ega character stats screen
svn-id: r48755
2010-04-20 19:37:58 +00:00
Martin Kiewitz f3be0bc181 SCI: replaced values with constant
svn-id: r48754
2010-04-20 19:23:33 +00:00
Martin Kiewitz 1e62e44fb6 SCI: the pc98 rom has to display kanji directly, because of the bad behaviour of GetLongest() we will actually put more chars in each line as actually fit. That way the scripts will only show most of the chars, but actually leave out some of the pixels of the far right characters. We now show kanji chars directly, sort of reproducing pc98 rom behaviour
svn-id: r48748
2010-04-20 16:46:26 +00:00
Martin Kiewitz ad24968f56 SCI: menu - handle right aligned "=" as actual text not as tag marker, also handle "=" as being a supported shortcut key
svn-id: r48747
2010-04-20 15:28:19 +00:00
Martin Kiewitz e70a484415 SCI: remove lone spaces at the end of right aligned menu items. fixes "wrongly" aligned menu items in some games
svn-id: r48746
2010-04-20 15:10:27 +00:00
Martin Kiewitz 45833f7e9a SCI: sq4/japanese uses sjis 0x9781 for line breaks as well
svn-id: r48742
2010-04-20 11:13:09 +00:00
Martin Kiewitz 589103f1b1 SCI: removed bad comment
svn-id: r48734
2010-04-19 20:43:17 +00:00
Martin Kiewitz 75f7536ca1 SCI: sierra switched hardcoded inside their pc98 interpreter to font 900, if sjis text got detected
svn-id: r48726
2010-04-19 20:15:31 +00:00
Martin Kiewitz 88af84514b SCI: added comments about sierra not upscaling cursors for shape and view cursors
svn-id: r48721
2010-04-19 16:38:36 +00:00
Martin Kiewitz 5e472b1ba2 SCI: added upscaling for shape cursors in upscaled hires games (will make the cursor "normal" sized in japanese sci01 games)
svn-id: r48720
2010-04-19 16:36:47 +00:00
Martin Kiewitz b5851dab00 SCI: added even more comments about the 0xD 0xA inside GetLongest()
svn-id: r48718
2010-04-19 15:30:21 +00:00
Martin Kiewitz 1e1e049e32 SCI: added more comments for 0xD 0xA cases inside GetLongest()
svn-id: r48715
2010-04-19 11:59:46 +00:00
Max Horn 4bf7e9e6b0 SCI: Fix yet another (new) const correctness violation.
I would suggest rewriting all of text16.cpp to use
byte* instead of char*, then all this casting around
(which introduces the const correctness violations)
would not be necessary in the first place.

svn-id: r48711
2010-04-19 09:46:27 +00:00
Martin Kiewitz 96b71b3745 SCI: removing single byte chars from double byte check in sjis class (damn wikipedia with their similar colors hehe)
svn-id: r48706
2010-04-18 21:18:58 +00:00
Martin Kiewitz 2590fd8c2a SCI: sierra sci reacts on 0xD and 0xA to end a line. We only reacted on 0xA and ignored 0xD before (fixes subtitles in multilingual games, because the official subtitle separator is 0xD'----'0xD)
svn-id: r48699
2010-04-18 12:09:22 +00:00
Martin Kiewitz f68dfd61de SCI: fix regression from r48685 - english got always used for menu entries
svn-id: r48698
2010-04-18 10:15:56 +00:00
Max Horn b29b379894 More const correctness fixes
svn-id: r48695
2010-04-17 23:54:06 +00:00
Martin Kiewitz da2027da36 SCI: change textedit control to cast to unsigned char to fix cursor position when multilingual chars are used. Also make getFontHeight() private inside GfxFontFromResource class, remove it in all the other classes
svn-id: r48689
2010-04-17 15:16:40 +00:00
Martin Kiewitz 2ac3e93dab SCI: move menu window inside the screen, if parts of it are outside (happens in multilingual sq3 and lsl3)
svn-id: r48686
2010-04-17 13:42:19 +00:00
Martin Kiewitz 08ad84d556 SCI: implement ability to handle multilingual menu separators (is actually 2 separators with a language separator inbetween)
svn-id: r48685
2010-04-17 13:34:16 +00:00
Martin Kiewitz f8f50b5219 SCI: changed coordinate adjustment for kanji chars to & 0xFFC
svn-id: r48684
2010-04-17 13:31:04 +00:00
Walter van Niftrik 20c461e541 SCI: Remove subtitles in menu.
svn-id: r48683
2010-04-17 03:11:54 +00:00
Martin Kiewitz 88f6a39312 SCI: handle given coordinate to draw() inside SJIS font support as if the horizontal part would be the center of the character, fixes not perfectly centered japanese text. I assume that PC98 ROM also handled it that way. The actual cause for those "bad" coordinates is GetLongest(), but that behaviour is definitely how sierra sci does it
svn-id: r48678
2010-04-16 23:03:46 +00:00
Martin Kiewitz cd4812dfd9 SCI: support for kanji (sjis), minor centering issue left
svn-id: r48674
2010-04-16 18:23:50 +00:00
Martin Kiewitz 01852cbf93 SCI: dont switch to english on kanji text, also cut off text w/o spaces inside GetLongest() so that kanji raw chars will appear in windows
svn-id: r48673
2010-04-16 13:27:30 +00:00
Filippos Karapetis dd6fbd887d Added a sanity check for the current list node inside GfxAnimate::invoke(). This should fix the crash in LSL2 as described in patch #2987942, without adding additional lookups
svn-id: r48670
2010-04-16 12:58:14 +00:00
Martin Kiewitz 2cb0f7f155 SCI: make pixelation transition work in upscaled hires mode
svn-id: r48668
2010-04-16 11:44:10 +00:00
Martin Kiewitz 1410f3c65a SCI: make scroll transitions work in upscaled hires mode
svn-id: r48667
2010-04-16 11:22:37 +00:00
Martin Kiewitz 20392ebee8 SCI: split menu/item strings when displaying instead of when initializing - makes on-the-fly menu language changes possible (used by multilingual SCI01 games)
svn-id: r48659
2010-04-15 16:40:37 +00:00
Martin Kiewitz 4e9183cc1b SCI: removing unused variable from palette::set
svn-id: r48475
2010-04-02 18:51:20 +00:00
Martin Kiewitz bc311445f8 SCI: change actual setting of palette, fixes gk1 palette issue when talking to grace indirectly caused by r47955, seems to also fix jones palette issue, could cause regressions
svn-id: r48474
2010-04-02 18:48:17 +00:00
Max Horn 92c896d883 Patch #2973290: Semicolon cleanup
svn-id: r48359
2010-03-22 20:28:08 +00:00
Max Horn 2e68de1e5a SCI: Turn kernel_sleep() into SciEvent::sleep()
svn-id: r48119
2010-02-23 22:47:53 +00:00
Max Horn 02201e937a SCI: Move SciGui::wait to EngineState::wait
svn-id: r48118
2010-02-23 22:44:46 +00:00