Skip to content

Commit 8f34f2e

Browse files
Update bundles/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/DefaultRangeIndicator.java
Co-authored-by: Federico Jeanne <[email protected]>
1 parent 4723e32 commit 8f34f2e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bundles/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/DefaultRangeIndicator.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,14 @@ private static Image createImage(Display display, Point size, Color rangeIndicat
143143
ImageDataProvider imageDataProvider = zoom -> {
144144

145145
float scaleFactor = (float) ((zoom) / 100.0);
146-
int scaled_width = Math.round(width * scaleFactor);
147-
int scaled_height = Math.round(height * scaleFactor);
148-
ImageData imageData = new ImageData(scaled_width, scaled_height,
146+
int scaledWidth = Math.round(width * scaleFactor);
147+
int scaledHeight = Math.round(height * scaleFactor);
148+
ImageData imageData = new ImageData(scaledWidth, scaledHeight,
149149
1,
150150
createPalette(display, rangeIndicatorColor));
151151
int blockSize = Math.round(scaleFactor);
152-
for (int y = 0; y < scaled_height; y++)
153-
for (int x = 0; x < scaled_width; x++) {
152+
for (int y = 0; y < scaledHeight; y++)
153+
for (int x = 0; x < scaledWidth; x++) {
154154
if (((x / blockSize) + (y / blockSize)) % 2 == 0) {
155155
imageData.setPixel(x, y, 1);
156156
}

0 commit comments

Comments
 (0)