Update of /cvsroot/freevo/freevo/src/gui
In directory sc8-pr-cvs1:/tmp/cvs-serv7708
Modified Files:
Border.py
Log Message:
fix pygame bug by drawing more than one 1 pixel rec
Index: Border.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/gui/Border.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Border.py 2 May 2003 01:09:02 -0000 1.6
--- Border.py 1 Sep 2003 18:50:04 -0000 1.7
***************
*** 8,11 ****
--- 8,14 ----
#-----------------------------------------------------------------------
# $Log$
+ # Revision 1.7 2003/09/01 18:50:04 dischi
+ # fix pygame bug by drawing more than one 1 pixel rec
+ #
# Revision 1.6 2003/05/02 01:09:02 rshortt
# Changes in the way these objects draw. They all maintain a self.surface
***************
*** 180,187 ****
if self.style == self.BORDER_FLAT:
c = self.color.get_color_sdl()
! self.rect = pygame.draw.rect(self.parent.surface, c,
! self.parent.surface.get_rect(),
! self.thickness)
! if DEBUG: print 'Border: x=%s, y=%s, w=%s, h=%s' % (self.left, self.top,
self.width, self.height)
# if self.style == self.BORDER_SHADOW:
--- 183,194 ----
if self.style == self.BORDER_FLAT:
c = self.color.get_color_sdl()
! for i in range(0, self.thickness):
! w, h = self.parent.surface.get_size()
! # looks strange, but sometimes thinkness doesn't work
! self.rect = pygame.draw.rect(self.parent.surface, c,
! (i, i, w-2*i, h-2*i), 1)
!
! if DEBUG: print 'Border: x=%s, y=%s, w=%s, h=%s' % \
! (self.left, self.top, self.width, self.height)
# if self.style == self.BORDER_SHADOW:
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog