mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-01-08 20:22:38 +01:00
На всякий пожарный добавил поддержку пикч < 8x4 пикселей
This commit is contained in:
parent
7b8a505b37
commit
d6c75e1e2d
@ -242,7 +242,7 @@ local function checkImage(url, mneTolkoSprosit)
|
||||
local encodingMethod = string.byte(data:sub(5, 5))
|
||||
|
||||
if encodingMethod >= 6 or encodingMethod <= 8 then
|
||||
if string.byte(data:sub(6, 6)) == 8 and string.byte(data:sub(7, 7)) == 4 then
|
||||
if string.byte(data:sub(6, 6)) <= 8 and string.byte(data:sub(7, 7)) <= 4 then
|
||||
if mneTolkoSprosit then
|
||||
handle:close()
|
||||
|
||||
@ -583,6 +583,8 @@ local function getPublicationIcon(publication)
|
||||
|
||||
return loadImage(path)
|
||||
else
|
||||
GUI.alert(reason)
|
||||
|
||||
return fileNotExistsIcon
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user