1. pygame
  2. Untitled project
  3. pygame

Commits

pygame  committed 3bc6abd

fixed update() cropping

  • Participants
  • Parent commits 2ded584
  • Branches default

Comments (0)

Files changed (3)

File README.TXT

View file
 - Maxim Sobolev for FreeBSD port maintenance
 - Niki Spahiev for bugfixes
 - Jan Ekhol, Ray Kelm, and Peter Nicolai for initial design reviews
-- And our dutiful bug hunters; Angus Young
+- And our dutiful bug hunters; Angus Young and Guillaume Proux
 
 There's many more folks out there who've submitted helpful ideas,
 kept this project going, and basically made my life easer; thanks!

File WHATSNEW

View file
 
 Apr 08, 2001
 	properly free SDL objects on malloc errors
+	fixed rectangle cropping in pygame.display.update()
 
 pygame-10
 Apr 05, 2001

File src/display.c

View file
 /*BAD things happen when out-of-bound rects go to updaterect*/
 static int screencroprect(GAME_Rect* r, int w, int h)
 {
-	if(r->x >= w || r->y >= h || r->x < 0 || r->y < 0)
+	if(r->x >= w || r->y >= h || (r->x + w->w) < 0 || (r->y + r->h) < 0)
 		return 0;
 	else
 	{