Stephen Wood
2004-09-11 20:10:48 UTC
This change causes an exception for me. I also get the exception if I
put in 8 instead of 24. I am running a 16 bit display on FC1.
Stephen
An unexpected exception has occurred.
Please see the help for details on what to do.
Traceback (most recent call last):
File "/home/saw/BITPIM/bitpim/gui.py", line 936, in OnEditAddEntry
self.nb.GetPage(self.nb.GetSelection()).OnAdd(evt)
File "/home/saw/BITPIM/bitpim/guiwidgets.py", line 1140, in OnAdd
self.OnAddFiles(dlg.GetPaths())
File "/home/saw/BITPIM/bitpim/wallpaper.py", line 280, in OnAddFiles
self.OnAddImage(img,file,refresh=False)
File "/home/saw/BITPIM/bitpim/wallpaper.py", line 293, in OnAddImage
obj=ScaleImageIntoBitmap(obj, self.usewidth, self.useheight,
"FFFFFF") # white background ::TODO:: something more intelligent
File "/home/saw/BITPIM/bitpim/wallpaper.py", line 352, in
ScaleImageIntoBitmap
bitmap=wx.EmptyBitmap(usewidth, useheight, 24)
File "/usr/lib/python2.3/site-packages/wx/_gdi.py", line 653, in
EmptyBitmap
val = _gdi_.new_EmptyBitmap(*args, **kwargs)
PyAssertionError: C++ assertion "wxAssertFailure" failed in
../src/gtk/bitmap.cpp(300): invalid bitmap depth
On Fri, 2004-09-10 at 23:21,
put in 8 instead of 24. I am running a 16 bit display on FC1.
Stephen
An unexpected exception has occurred.
Please see the help for details on what to do.
Traceback (most recent call last):
File "/home/saw/BITPIM/bitpim/gui.py", line 936, in OnEditAddEntry
self.nb.GetPage(self.nb.GetSelection()).OnAdd(evt)
File "/home/saw/BITPIM/bitpim/guiwidgets.py", line 1140, in OnAdd
self.OnAddFiles(dlg.GetPaths())
File "/home/saw/BITPIM/bitpim/wallpaper.py", line 280, in OnAddFiles
self.OnAddImage(img,file,refresh=False)
File "/home/saw/BITPIM/bitpim/wallpaper.py", line 293, in OnAddImage
obj=ScaleImageIntoBitmap(obj, self.usewidth, self.useheight,
"FFFFFF") # white background ::TODO:: something more intelligent
File "/home/saw/BITPIM/bitpim/wallpaper.py", line 352, in
ScaleImageIntoBitmap
bitmap=wx.EmptyBitmap(usewidth, useheight, 24)
File "/usr/lib/python2.3/site-packages/wx/_gdi.py", line 653, in
EmptyBitmap
val = _gdi_.new_EmptyBitmap(*args, **kwargs)
PyAssertionError: C++ assertion "wxAssertFailure" failed in
../src/gtk/bitmap.cpp(300): invalid bitmap depth
On Fri, 2004-09-10 at 23:21,
Index: wallpaper.py
===================================================================
RCS file: /cvsroot/bitpim/bitpim/wallpaper.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- wallpaper.py 28 Aug 2004 08:31:46 -0000 1.35
+++ wallpaper.py 10 Sep 2004 04:08:31 -0000 1.36
@@ -348,7 +348,7 @@
@param useheight: the height of the new image
@param bgcolor: the background colour as a string ("ff0000" is red etc). If this
is none then the background is made transparent"""
- bitmap=wx.EmptyBitmap(usewidth, useheight)
+ bitmap=wx.EmptyBitmap(usewidth, useheight, 24)
mdc=wx.MemoryDC()
mdc.SelectObject(bitmap)
# scale the source.
===================================================================
RCS file: /cvsroot/bitpim/bitpim/wallpaper.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- wallpaper.py 28 Aug 2004 08:31:46 -0000 1.35
+++ wallpaper.py 10 Sep 2004 04:08:31 -0000 1.36
@@ -348,7 +348,7 @@
@param useheight: the height of the new image
@param bgcolor: the background colour as a string ("ff0000" is red etc). If this
is none then the background is made transparent"""
- bitmap=wx.EmptyBitmap(usewidth, useheight)
+ bitmap=wx.EmptyBitmap(usewidth, useheight, 24)
mdc=wx.MemoryDC()
mdc.SelectObject(bitmap)
# scale the source.