Commits

Show all
Author Commit Message Labels Comments Date
Lenard Lindstrom
Fix bug where pygame.color fails the unit test for x86-32 Linux See changeset dc57da440ac3 for the same problem with pygame.math For gcc 4.4 to at least gcc 4.8.2, -O2 optimization reduces the precision of floating point arithmetic on doubles, compared to unoptimized code. This caused two test cases in color_test.py to fail.
Lenard Lindstrom
Fix a bug in sysfont.py exposed by commit ae2e36d For Python 3.x, raw font information was incorrectly converted back to byte strings. This caused incorrect parsing of the information, which showed up as failed unit tests. This corrects the bug, Raw data is not converted to unicode strings for both Python 2.x and 3.x.
Lenard Lindstrom
Decapitate zombie bug 52 (Motherhampster Bugzilla) It came back. A gcc 4.4 floating point optimization changes the precision of floating point arithmetic for doubles. The altered precision slightly changes the results of calculations, showing up as unit test fails. The bug fix, however, was quite specific in its application, only enabled for gcc version 4.4. Guess what? The problem still exists with gcc 4.8.2. This commit broadens the scope of the…
Lenard Lindstrom
A possible solution to Issue #131 In surface.c the surf_convert function uses memcpy to copy the source format to the target format. This includes the palette pointer. If the target format has a non-NULL palette pointer, the palette is checked to ensure at least one palette color is not black. It does not matter if the target pixel format actually uses a palette or not. So unless the target has a palette, make sure the palette poi…
Jason Marshall
Removed hard-coded font lists. They're not necessary, and updating them every time that a new OS is released would be a burden. Now, sysfont will depend on the registry (on Windows) or X11 fc-list (on any other OS) to generate a system's font list. Ad-hoc tested sysfont changes on Windows 7 with Python 2.4 and 3.4. Tested on Mac OS X 10.4 with Python 2.7. Close #179. Processed with autopep8.
Lenard Lindstrom
Reindent alphablit.c Make alphablit.c control structures easier to follow. This will help when converting it to SDL 2.
Lenard Lindstrom
Close Issue #243 Issue #243: For a string with trailing spaces, freetype ignores the last space in boundary calculations After the layout loop, determine if the last character in the text string is a space by checking if its bitmap is width 0. If so, update the text boundaries — min_x, max_x, min_y, max_y — with the current pen position, which already includes the space's advance. Also update change …
Lenard Lindstrom
Close Issue #273 Issue #273: Memory overrun when text without descenders is rendered with underlining When the fractional top and bottom of an underlining fit within a single row, the difference between the line bottom and the lower pixel boundary, a negative number, was misinterpreted as meaning there was a second row to fill. If the line was already at the bottom row of the surface, then the next ro…
Lenard Lindstrom
Close Issue #242 Issue #242: freetype.Font.get_rect() ignores style defaults when the style argument is not given Make the default value of the style argument be FT_STYLE_DEFAULT, as documented for get_rect().
Lenard Lindstrom
msg.txt
Jason Marshall
Process with autopep8.
Jason Marshall
Replace try...except blocks with if...else blocks because they execute slightly more quickly. Process with autopep8.
J...@jmmdesk4
Replace try...except blocks with if...else blocks because they execute slightly more quickly. Process with autopep8.
Lenard Lindstrom
remove some gcc 4.8.2 compiler warnings for imageext.c
Lenard Lindstrom
Close Issue #165 The icon file is opened as a Python file object to check if it exists, and, presumably, to retrieve it's full path name. Then the file object is released, and replaced with the path name, a Python string. The string is passed to pygame.image.load_basic() to retrieve the icon image. This patch adds a close() method call on the file object before it is released.
Lenard Lindstrom
Close Issue #186 Fix faulty unit test in freetype_test.py. When the freetype.Font.get_size() method was replaced to get_rect(), the assertions in the the surrogate pair test were not changed to compare Rects rather that (w, h) tuples.
Lenard Lindstrom
Make the pygame.freetype.init() cache_size argument actually work
Lenard Lindstrom
pygame.freetype.init() would crash on error
Lenard Lindstrom
A fix for Issue 187: needs confirmation My best guess for Python 3.4 crashing after completing the freetype_test.py unit tests is that the Font instances created by FreeTypeFontTest.setUp() were freed after autoquit closed the freetype 2 library. This changeset makes FreeTypeInstance reference counted, with each Font instance keeping a reference to the FreeTypeInstance instance it was created with. The freetype 2 library is closed only …
Lenard Lindstrom
merge in unintensional branch
Lenard Lindstrom
Fix bug where PyBuffer_Release is called after a Python error is raised Caught by the debug build of the Python 3.4 interpreter. In the ft_render.c function _PGFT_Render_Array, PgBuffer_Release was called if _validate_view_format() raised an exception. BgBuffer_Release in turn calls PyBuffer_Release. PyBuffer_Release expects no pending errors, as checked by a C assert. The change raises the exception after the buffer is freed by PgBuffer_Release. The error message is…
Lenard Lindstrom
Include gcc libaries in the Pygame Windows install
Lenard Lindstrom
Remove unintensional branch
Lenard Lindstrom
Applies to issue #221; needs confirmation on big-endian hardware The color masks for saving 24 and 32 bit images were wrong. Also, create a 24 bit intermediate surface when there is no per-pixel alpha. Note: The JPEG save also needs its masks corrected.
Lenard Lindstrom
Reconfigure the msys_build_deps.py build chain to link only to msvcrt.dll This also introduces some updated library versions. Since it has become impractical to build libraries with MinGW that link to any VC runtime library other that msvcrt.dll, nothing is lost by trying to use prebuilts linked to msvcrt.dll. If Pygame avoids passing open files to the libraries or mixing memory management, then everything should be fine.
Lenard Lindstrom
Remove cross library FILE * dependencies in imageext.c In Windows there is, unfortunately, multiple versions of the C runtime library. None of them are compatible with the others. This changeset removes the need for the jpeg and png DLLs to use the same C library as does the imageext module, by keeping file IO within imageext. It is hoped this is the last change needed to allow Pygame's Windows prebuilt libraries to link to a different C runtime libra…
illume
Merged in pcraven/pygame/Fix for issue 230 (pull request #43) Fix for issue #230. Skip test_image_convert_bug_131 for headless tests.
Paul Craven
Fix for issue #230. Skip test_image_convert_bug_131 for headless tests.
Branches
Fix for issue 230
illume
Merged in pcraven/pygame/Fix issue 226 try 2 (pull request #41) Fix for issue 226
Paul Craven
Fix for issue 226
Branches
Fix issue 226 try 2
  1. Prev
  2. Next