diff --git a/thrimbletrimmer/driveclock/drive.js b/thrimbletrimmer/driveclock/drive.js index ff31267..266bb89 100644 --- a/thrimbletrimmer/driveclock/drive.js +++ b/thrimbletrimmer/driveclock/drive.js @@ -84,6 +84,9 @@ function drawBackground(context, timeOfDay, leftX, width) { const groundColor = COLORS[timeOfDay].ground; const surfaceColor = COLORS[timeOfDay].surface; + width = Math.ceil(width); + leftX = Math.floor(leftX); + context.fillStyle = COLORS[timeOfDay].sky; context.fillRect(leftX, 0, width, 56); context.fillStyle = COLORS[timeOfDay].surface;