Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/fdwr/src
Browse files Browse the repository at this point in the history
  • Loading branch information
fdwr committed May 13, 2024
2 parents b3e50f1 + 06de9d3 commit 45b0a82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/LunaSvgTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3070,8 +3070,8 @@ void RepaintWindow(HWND hwnd)
if (g_gridVisible)
{
// Draw internal grid.
int32_t averagecolorAdjustment = std::clamp(minimumGridSpacing * 4u, 32u, 64u); // Scale color adjustment by spacing amount.
DrawGridFast32bpp(itemRect, gridSpacingX, gridSpacingY, averagecolorAdjustment, /*drawDots:*/false, /*adjustColor:*/true, memoryBitmapPixels, memoryBitmapRowByteStride, clientRect);
int32_t averageColorAdjustment = std::clamp(minimumGridSpacing * 4u, 32u, 64u); // Scale color adjustment by spacing amount.
DrawGridFast32bpp(itemRect, gridSpacingX, gridSpacingY, averageColorAdjustment, /*drawDots:*/false, /*adjustColor:*/true, memoryBitmapPixels, memoryBitmapRowByteStride, clientRect);
}
if (g_itemBorderVisible)
{
Expand All @@ -3083,8 +3083,8 @@ void RepaintWindow(HWND hwnd)
if (g_pixelGridVisible && g_bitmapPixelZoom > 1)
{
// Draw internal points.
int32_t averagecolorAdjustment = std::clamp(22 + g_bitmapPixelZoom * 6u, 32u, 255u); // Scale color adjustment by zoom.
DrawGridFast32bpp(itemRect, g_bitmapPixelZoom, g_bitmapPixelZoom, averagecolorAdjustment, /*drawDots:*/true, /*adjustColor:*/true, memoryBitmapPixels, memoryBitmapRowByteStride, clientRect);
int32_t averageColorAdjustment = std::clamp(22 + g_bitmapPixelZoom * 6u, 32u, 255u); // Scale color adjustment by zoom.
DrawGridFast32bpp(itemRect, g_bitmapPixelZoom, g_bitmapPixelZoom, averageColorAdjustment, /*drawDots:*/true, /*adjustColor:*/true, memoryBitmapPixels, memoryBitmapRowByteStride, clientRect);
}
}
break;
Expand Down

0 comments on commit 45b0a82

Please sign in to comment.