off by one bug
This commit is contained in:
parent
787f2580df
commit
7751949503
5
init.lua
5
init.lua
@ -1,4 +1,5 @@
|
||||
PROCESSOR = "native" -- options are: "native", "py", "gm", "magick", "imlib2"
|
||||
print("PROCESSOR is "..PROCESSOR)
|
||||
--imlib2 treats 16-bit as 8-bit and requires imlib2, magick requires magick wand -- magick is the most tested mode
|
||||
--gm does not work and requires graphicksmagick, py is bit slow and requires lunatic-python to be built, and the PIL,
|
||||
--convert uses commandline imagemagick "convert" or graphicsmagick "gm convert" ("convert.exe" or "gm.exe convert")
|
||||
@ -676,8 +677,8 @@ function realterrain.init()
|
||||
local bitmap, e = imageloader.load(RASTERS..realterrain.settings["file"..rastername])
|
||||
if e then print(e) end
|
||||
realterrain[rastername].image = bitmap
|
||||
realterrain[rastername].width = realterrain[rastername].image.width
|
||||
realterrain[rastername].length = realterrain[rastername].image.height
|
||||
realterrain[rastername].width = width
|
||||
realterrain[rastername].length = length
|
||||
realterrain[rastername].format = "png"
|
||||
elseif format == "image/tiff" then
|
||||
local file = io.open(RASTERS..realterrain.settings["file"..rastername], "rb")
|
||||
|
BIN
rasters/test-rgb.tif
Normal file
BIN
rasters/test-rgb.tif
Normal file
Binary file not shown.
BIN
rasters/test.png
Normal file
BIN
rasters/test.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 131 B |
BIN
rasters/test.tif
Normal file
BIN
rasters/test.tif
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user