diff options
author | Colin Snover | 2017-10-06 15:27:22 -0500 |
---|---|---|
committer | Colin Snover | 2017-10-06 22:11:03 -0500 |
commit | 4521e9774af526b945f550c7607cf1b82d649154 (patch) | |
tree | af620cb86d316546a73f6b90c88c57f444cdf0e6 /engines/sci/graphics | |
parent | 31e1d0932cf4cdba7fdb1d1eec6e349fcc3c0ac0 (diff) | |
download | scummvm-rg350-4521e9774af526b945f550c7607cf1b82d649154.tar.gz scummvm-rg350-4521e9774af526b945f550c7607cf1b82d649154.tar.bz2 scummvm-rg350-4521e9774af526b945f550c7607cf1b82d649154.zip |
SCI32: Clean up GfxPaint32
* Rewrap comments to 80 columns
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r-- | engines/sci/graphics/paint32.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/sci/graphics/paint32.cpp b/engines/sci/graphics/paint32.cpp index 8a63365f03..f4d9c9f4d3 100644 --- a/engines/sci/graphics/paint32.cpp +++ b/engines/sci/graphics/paint32.cpp @@ -42,9 +42,9 @@ reg_t GfxPaint32::kernelAddLine(const reg_t planeObject, const Common::Point &st CelInfo32 celInfo; celInfo.type = kCelTypeMem; celInfo.bitmap = bitmapId; - // SSCI stores the line color on `celInfo`, even though - // this is not a `kCelTypeColor`, as a hack so that - // `kUpdateLine` can get the originally used color + // SSCI stores the line color on `celInfo`, even though this is not a + // `kCelTypeColor`, as a hack so that `kUpdateLine` can get the originally + // used color celInfo.color = color; ScreenItem *screenItem = new ScreenItem(planeObject, celInfo, gameRect); @@ -93,7 +93,8 @@ void GfxPaint32::plotter(int x, int y, int color, void *data) { const uint32 index = bitmapWidth * y + x; // Only draw the points in the bitmap, and ignore the rest. SSCI scripts - // can draw lines ending outside the visible area (e.g. negative coordinates) + // can draw lines ending outside the visible area (e.g. negative + // coordinates) if (x >= 0 && x < bitmapWidth && y >= 0 && y < bitmapHeight) { if (properties.solid) { pixels[index] = (uint8)color; |