Commits

pygame  committed 04f376e

crash in display.set_mode fixed

  • Participants
  • Parent commits 8d72aa5

Comments (0)

Files changed (2)

 #This is a list of changes in pygame's history.
 
+Dec 14, 2000
+	display.set_mode pretending shorts are ints [BUG]
+
 pygame-04
 Dec 14, 2000
 	music module had incorrect names for volume functions

File src/display.c

 static PyObject* mode_ok(PyObject* self, PyObject* args)
 {
 	int flags=SDL_SWSURFACE, depth=0;
-	short w, h;
+	int w, h;
 
 	VIDEO_INIT_CHECK();
 
 	if(!PyArg_ParseTuple(args, "(ii)|ii", &w, &h, &flags, &depth))
 		return NULL;
-
 	if(!depth)
 		depth = SDL_GetVideoInfo()->vfmt->BitsPerPixel;