Skip to content

Commit 47f5855

Browse files
committed
Fix some stuff
- Mark mod as compatible - Change mod description - Update go version - Speed up image stitching 2x - Fix stitching progress bar
1 parent c78a8b5 commit 47f5855

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: go
22
go:
3-
- "1.14.x"
3+
- "1.15.x"
44

55
env:
66
- GO111MODULE=on

bin/stitch/medianBlendedImage.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ func (mbi *MedianBlendedImage) At(x, y int) color.Color {
7272
return mbi.cachedRow.RGBAAt(x, y)
7373
}
7474

75+
// Opaque returns whether the image is fully opaque.
76+
//
77+
// For more speed and smaller filesizes, MedianBlendedImage will be marked as non-transparent.
78+
// This will speed up image saving by 2x, as there is no need to iterate over the whole image to find a single non opaque pixel.
79+
func (mbi *MedianBlendedImage) Opaque() bool {
80+
return true
81+
}
82+
7583
// Progress returns the approximate progress of any process that scans the image from top to bottom.
7684
func (mbi *MedianBlendedImage) Progress() (value, max int) {
7785
size := mbi.Bounds().Size()

compatibility.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<Mod _format_version="0"
2+
version_built_with="4">
3+
</Mod>

mod.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<Mod name="MapCapture"
2-
description="This mod screen-captures a large part of the map, and stores the screenshot as image."
2+
description="This mod lets you capture a large part of the world, and store it as image."
33
request_no_api_restrictions="1">
44
</Mod>

0 commit comments

Comments
 (0)