Commits

Anonymous committed 3a0be8b

ready for 1.1 release

Comments (0)

Files changed (11)

-Pygame Version 1.0.9
-June 11th, 2001
+Pygame Version 1.1
+June 23rd, 2001
 
 Python Game Development
 by Pete Shinners
 
 
 
-INSTALLTION
+INSTALLATION
 
 Full installation instructions are found in docs/fullinstall.txt
 
 Compilation/Installation is handled by the python distutils. Just
-run "python setup.py install" to perform the installation. This will
-make a worthwhile attempt at configuring the compiler variables and
-getting everything installed.
+run "python setup.py" to perform the installation. This will make a
+worthwhile attempt at configuring the compiler variables and getting
+everything installed.
 
 Distutils has a lot of installation options. To get started with them
 run "python setup.py --help". Also, if you are getting errors compiling,
 # BREAK = change breaks existing code
 # BUG   = fixed a bug that was crashing
 
+Jun 23, 2001
+	removed smooth underline font render protection
+
 Jun 19, 2001
 	fixed botched image.save() function
 
 
 <hr>
 
-<font size=+1><b>Text File Documentation</b></font><br><li><a href=../README.TXT>README</a> - Pygame version 1.0.9</li>
+<font size=+1><b>Text File Documentation</b></font><br><li><a href=../README.TXT>README</a> - Pygame version 1.1</li>
 <li><a href=LGPL>LGPL</a> - Gnu lesser general public license</li>
 <li><a href=fullinstall.txt>fullinstall</a> - Build instructions for building and installing pygame</li>
 <li><a href=init.txt>init</a> - Information about importing and initializing pygame</li><br>&nbsp;<br><font size=+1><b>Tutorials</b></font><br><li><a href=tut/ChimpLineByLine.html>tut/ChimpLineByLine</a> - Line by Line Descriptions of the Chimp Example

docs/ref/Font.html

 Note that font rendering is not thread safe, therefore only one
 thread can render text at any given time.
 <br>&nbsp;<br>
-Also, rendering smooth text with underlines will crash SDL_ttf.
-Pygame will currently disable the underline when doing smoothed text.
+Also, rendering smooth text with underlines will crash with SDL_ttf
+less that version 2.0, be careful.
 </ul><br>&nbsp;<br>
 
 <a name=set_bold><font size=+2><b>set_bold

docs/ref/pygame_image.html

 <br>
 <h2 align=center>pygame.image</h2>
 This module contains functions to transfer images in and out
-of Surfaces. At the minimum the included <a href=#load>load()</a> function will
+of Surfaces. At the minimum the included <a href=pygame_mixer_music.html#load>load()</a> function will
 support BMP files. If SDL_image is properly installed when
 pygame is installed, it will support all the formats included
 with SDL_image. You can call the <a href=#get_extended>get_extended()</a> function to test
 if the SDL_image support is available.
 <br>&nbsp;<br>
 Some functions that communicate with other libraries will require
-that those libraries are properly installed. For example, the <a href=#save>save()</a>
+that those libraries are properly installed. For example, the <a href=Surface.html#save>save()</a>
 function can only save OPENGL surfaces if pyopengl is available.
 
 <hr>

docs/ref/pygame_mixer_music.html

 <br>&nbsp;<br>
 The music module has many of the same types of functions as the
 Sound objects. The main difference is only one music object can
-be loaded at a time, with the <a href=pygame_image.html#load>load()</a> function. Music
+be loaded at a time, with the <a href=#load>load()</a> function. Music
 must be stored in an individual file on the system, it cannot be
 loaded from special file-like objects through python.
 
 releases. (hmm, until we get to versions > 10)
 """
 
-ver = '1.0.9'
+ver = '1.1'
 
 def __hiddendummyfunc():
     """pygame.version.ver 
 
 METADATA = {
     "name":             "pygame",
-    "version":          "1.0.9",
+    "version":          "1.1",
     "license":          "LGPL",
     "url":              "http://www.pygame.org",
     "author":           "Pete Shinners",
     /*DOC*/    "Note that font rendering is not thread safe, therefore only one\n"
     /*DOC*/    "thread can render text at any given time.\n"
     /*DOC*/    "\n"
-    /*DOC*/    "Also, rendering smooth text with underlines will crash SDL_ttf.\n"
-    /*DOC*/    "Pygame will currently disable the underline when doing smoothed text.\n"
+    /*DOC*/    "Also, rendering smooth text with underlines will crash with SDL_ttf\n"
+    /*DOC*/    "less that version 2.0, be careful.\n"
     /*DOC*/ ;
 
 static PyObject* font_render(PyObject* self, PyObject* args)
 	Uint8 rgba[4];
 	SDL_Surface* surf;
 	SDL_Color foreg, backg;
-	int style, hasunderline;
 
 	if(!PyArg_ParseTuple(args, "OiO|O", &text, &aa, &fg_rgba_obj, &bg_rgba_obj))
 		return NULL;
 		backg.r = rgba[0]; backg.g = rgba[1]; backg.b = rgba[2];
 	}	
 
-	style = TTF_GetFontStyle(font);
-	hasunderline = style&TTF_STYLE_UNDERLINE;
 	if(PyUnicode_Check(text))
 	{
 		Py_UNICODE* string = PyUnicode_AsUnicode(text);
 		if(aa)
 		{
-			if(hasunderline) TTF_SetFontStyle(font, style&~TTF_STYLE_UNDERLINE);
 			if(!bg_rgba_obj)
 				surf = TTF_RenderUNICODE_Blended(font, string, foreg);
 			else
 				surf = TTF_RenderUNICODE_Shaded(font, string, foreg, backg);
-			if(hasunderline) TTF_SetFontStyle(font, style);
 		}
 		else
 			surf = TTF_RenderUNICODE_Solid(font, string, foreg);
 		char* string = PyString_AsString(text);
 		if(aa)
 		{
-			if(hasunderline) TTF_SetFontStyle(font, style&~TTF_STYLE_UNDERLINE);
 			if(!bg_rgba_obj)
 				surf = TTF_RenderText_Blended(font, string, foreg);
 			else
 				surf = TTF_RenderText_Shaded(font, string, foreg, backg);
-			if(hasunderline) TTF_SetFontStyle(font, style);
 		}
 		else
 			surf = TTF_RenderText_Solid(font, string, foreg);
 		is_extended = 0;
 	}
 
-
 	/*imported needed apis*/
 	import_pygame_base();
 	import_pygame_surface();
 
 
 
-
 static PyMethodDef image_builtins[] =
 {
 	{ "load_extended", image_load_ext, 1, NULL },
 
 
 
-
 PYGAME_EXPORT
 void initimageext(void)
 {