mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 03:50:06 +01:00
Merge branch 'patch-1' of https://github.com/MichaelHipp/Phoenix into MichaelHipp-patch-1
Conflicts: wx/tools/img2img.py
This commit is contained in:
@@ -21,11 +21,7 @@ import sys
|
|||||||
import wx
|
import wx
|
||||||
|
|
||||||
def convert(file, maskClr, outputDir, outputName, outType, outExt):
|
def convert(file, maskClr, outputDir, outputName, outType, outExt):
|
||||||
if os.path.splitext(file)[1].lower() == ".ico":
|
img = wx.Bitmap(file, wx.BITMAP_TYPE_ANY)
|
||||||
img = wx.Bitmap(file, wx.BITMAP_TYPE_ICO)
|
|
||||||
else:
|
|
||||||
img = wx.Bitmap(file, wx.BITMAP_TYPE_ANY)
|
|
||||||
|
|
||||||
if not img.IsOk():
|
if not img.IsOk():
|
||||||
return 0, file + " failed to load!"
|
return 0, file + " failed to load!"
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user