Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1:/tmp/cvs-serv7414
Modified Files:
osd.py
Log Message:
make it possible that image is already a .raw file
Index: osd.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/osd.py,v
retrieving revision 1.117
retrieving revision 1.118
diff -C2 -d -r1.117 -r1.118
*** osd.py 3 Jan 2004 17:43:14 -0000 1.117
--- osd.py 4 Jan 2004 17:18:15 -0000 1.118
***************
*** 11,14 ****
--- 11,17 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.118 2004/01/04 17:18:15 dischi
+ # make it possible that image is already a .raw file
+ #
# Revision 1.117 2004/01/03 17:43:14 dischi
# OVERLAY_DIR is always used
***************
*** 1226,1230 ****
try:
! if os.stat(thumb)[stat.ST_MTIME] > sinfo[stat.ST_MTIME]:
data = util.read_pickle(thumb)
except OSError:
--- 1229,1235 ----
try:
! if filename.endswith('.raw'):
! data = util.read_pickle(filename)
! elif os.stat(thumb)[stat.ST_MTIME] > sinfo[stat.ST_MTIME]:
data = util.read_pickle(thumb)
except OSError:
***************
*** 1253,1257 ****
data = (image.tostring(), image.size, image.mode)
util.save_pickle(data, thumb)
!
# convert to pygame image
image = pygame.image.fromstring(data[0], data[1], data[2])
--- 1258,1262 ----
data = (image.tostring(), image.size, image.mode)
util.save_pickle(data, thumb)
!
# convert to pygame image
image = pygame.image.fromstring(data[0], data[1], data[2])
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog