mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 06:31:17 +00:00
small fixes
This commit is contained in:
@@ -373,6 +373,12 @@ public class BitmapExporter extends ShapeExporterBase {
|
|||||||
thickness *= Math.max(graphics.getTransform().getScaleX(), graphics.getTransform().getScaleY());
|
thickness *= Math.max(graphics.getTransform().getScaleX(), graphics.getTransform().getScaleY());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// todo: negative width??? (wordctr1.swf)
|
||||||
|
if (thickness < 0) {
|
||||||
|
thickness = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (joinStyle == BasicStroke.JOIN_MITER) {
|
if (joinStyle == BasicStroke.JOIN_MITER) {
|
||||||
lineStroke = new BasicStroke((float) thickness, capStyle, joinStyle, miterLimit);
|
lineStroke = new BasicStroke((float) thickness, capStyle, joinStyle, miterLimit);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -185,8 +185,11 @@ public class FolderPreviewPanel extends JPanel {
|
|||||||
}
|
}
|
||||||
g.fillRect(x * CELL_WIDTH, y * CELL_HEIGHT, CELL_WIDTH, CELL_HEIGHT);
|
g.fillRect(x * CELL_WIDTH, y * CELL_HEIGHT, CELL_WIDTH, CELL_HEIGHT);
|
||||||
if (cachedPreviews.contains(index)) {
|
if (cachedPreviews.contains(index)) {
|
||||||
BufferedImage img = cachedPreviews.get(index).getBufferedImage();
|
SerializableImage sImg = cachedPreviews.get(index);
|
||||||
g.drawImage(img, x * CELL_WIDTH + BORDER_SIZE + PREVIEW_SIZE / 2 - img.getWidth() / 2, y * CELL_HEIGHT + BORDER_SIZE + PREVIEW_SIZE / 2 - img.getHeight() / 2, null);
|
if (sImg != null) {
|
||||||
|
BufferedImage img = cachedPreviews.get(index).getBufferedImage();
|
||||||
|
g.drawImage(img, x * CELL_WIDTH + BORDER_SIZE + PREVIEW_SIZE / 2 - img.getWidth() / 2, y * CELL_HEIGHT + BORDER_SIZE + PREVIEW_SIZE / 2 - img.getHeight() / 2, null);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
cachedPreviews.put(index, noImage);
|
cachedPreviews.put(index, noImage);
|
||||||
renderImageTask(index, items.get(index));
|
renderImageTask(index, items.get(index));
|
||||||
|
|||||||
Reference in New Issue
Block a user