From 4521e9774af526b945f550c7607cf1b82d649154 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Fri, 6 Oct 2017 15:27:22 -0500 Subject: SCI32: Clean up GfxPaint32 * Rewrap comments to 80 columns --- engines/sci/graphics/paint32.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'engines/sci/graphics') 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; -- cgit v1.2.3