[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.h,1.86,1.87

Max Horn fingolfin at users.sourceforge.net
Tue Sep 28 08:46:13 CEST 2004


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2797/scumm

Modified Files:
	gfx.h 
Log Message:
NEWS/TODO update; update smooth scrolling comment

Index: gfx.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.h,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -d -r1.86 -r1.87
--- gfx.h	27 Sep 2004 01:26:05 -0000	1.86
+++ gfx.h	28 Sep 2004 15:40:39 -0000	1.87
@@ -295,23 +295,17 @@
 };
 
 
-// If you want to try buggy hacked smooth scrolling support in The Dig, enable
-// the following preprocessor flag by uncommenting it.
-//
-// Note: This is purely experimental, NOT WORKING COMPLETLY and very buggy.
-// Please do not make reports about problems with it - this is only in CVS
-// to get it fixed and so that really interested parties can experiment it.
-// It is NOT FIT FOR GENERAL USAGE! You have been warned.
-//
-// Doing this correctly will be complicated. Basically, with smooth scrolling,
-// the virtual screen strips don't match the display screen strips. Hence we
-// either have to draw partial strips (but that'd be rather cumbersome). Or the
-// alternative (and IMHO more elegant) solution is to simply use a screen pitch
-// that is 8 pixel wider than the real screen width, and always draw one strip
-// more than needed to the backbuf. This will still require quite some code to
-// be changed but should otherwise be relatively easy to understand, and using
-// VirtScreen::pitch will actually clean up the code.
+// We now have mostly working smooth scrolling code in place for V7+ games
+// (i.e. The Dig, Full Throttle and COMI). It seems to work very well so far.
+// One area which still may need some work are the AKOS codecs (except for
+// codec 1, which I already updated): their masking code may need adjustments,
+// similar to the treatment codec 1 received.
 //
+// To understand how we achieve smooth scrolling, first note that with it, the
+// virtual screen strips don't match the display screen strips anymore. To
+// overcome that problem, we simply use a screen pitch that is 8 pixel wider
+// than the actual screen width, and always draw one strip more than needed to
+// the backbuf (of course we have to treat the right border seperately). This
 #define V7_SMOOTH_SCROLLING_HACK
 
 





More information about the Scummvm-git-logs mailing list