From 27469a1896f08c6d32df1778dc7e9cce28c2bec4 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 20 Feb 2005 00:17:22 +0000 Subject: Patch #1121337 (CGA rendering in early LEC titles). Differences against patch: o Updated documentation o Fixed text colors o Implemented Hercules dithering Ditherers are based on loom ega and monkey ega, so for zak and mm they're wrong, i.e. these games look better than with original ditherers. TODO: Proper ditherers for zak & MM EGA ditherers for VGA SCUMM v5 games svn-id: r16816 --- scumm/input.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scumm/input.cpp') diff --git a/scumm/input.cpp b/scumm/input.cpp index f68745ef47..d7d1f1c25c 100644 --- a/scumm/input.cpp +++ b/scumm/input.cpp @@ -130,6 +130,12 @@ void ScummEngine::parseEvents() { case OSystem::EVENT_MOUSEMOVE: _mouse.x = event.mouse.x; _mouse.y = event.mouse.y; + + if (_renderMode == Common::kRenderHerc) { + _mouse.x -= (Common::kHercW - _screenWidth * 2) / 2; + _mouse.x /= 2; + _mouse.y = _mouse.y * 4 / 7; + } break; case OSystem::EVENT_LBUTTONDOWN: -- cgit v1.2.3