mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-07 19:35:11 +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());
|
||||
break;
|
||||
}
|
||||
|
||||
// todo: negative width??? (wordctr1.swf)
|
||||
if (thickness < 0) {
|
||||
thickness = 0;
|
||||
}
|
||||
|
||||
if (joinStyle == BasicStroke.JOIN_MITER) {
|
||||
lineStroke = new BasicStroke((float) thickness, capStyle, joinStyle, miterLimit);
|
||||
} else {
|
||||
|
||||
@@ -185,8 +185,11 @@ public class FolderPreviewPanel extends JPanel {
|
||||
}
|
||||
g.fillRect(x * CELL_WIDTH, y * CELL_HEIGHT, CELL_WIDTH, CELL_HEIGHT);
|
||||
if (cachedPreviews.contains(index)) {
|
||||
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);
|
||||
SerializableImage sImg = cachedPreviews.get(index);
|
||||
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 {
|
||||
cachedPreviews.put(index, noImage);
|
||||
renderImageTask(index, items.get(index));
|
||||
|
||||
Reference in New Issue
Block a user