diff options
author | Torbjörn Andersson | 2004-07-26 16:41:57 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2004-07-26 16:41:57 +0000 |
commit | 2fedf7d285e01bfade39ce907400614cd7e13812 (patch) | |
tree | 15fe346ff66580974206fde9e67b77d06887ee34 /gui | |
parent | f28adf7a6c57e16f97d97bd1e919eaaf591d09a4 (diff) | |
download | scummvm-rg350-2fedf7d285e01bfade39ce907400614cd7e13812.tar.gz scummvm-rg350-2fedf7d285e01bfade39ce907400614cd7e13812.tar.bz2 scummvm-rg350-2fedf7d285e01bfade39ce907400614cd7e13812.zip |
I shouldn't be mixing cleanups and bug fixes, but I'm doing so anyway, just
this once. :-)
The parameters to drawLine() aren't clipped to the screen size, which meant
that it was accessing memory out of bounds when marking the screen as
dirty. The function now uses plotPoint(), which does the bounds checking
and screen dirtying for us. Apart from being a little easier to read, it
dirties only the parts of the screen the line actually passes through,
instead of a rectangle defined by the line's end points.
Since drawLine() is only used for debugging, I wouldn't consider this a
particularly serious bug.
Next change is that only the pixels inside the original parallax layer are
considered when creating the block surfaces. This may make the drawing
slightly more efficient, since fewer surfaces will be labelled as
transparent.
Plus some other minor cleanups.
svn-id: r14340
Diffstat (limited to 'gui')
0 files changed, 0 insertions, 0 deletions