renpy / pygame_sdl2

Reimplementation of portions of the pygame API using SDL2.
GNU Lesser General Public License v2.1
325 stars 63 forks source link

gfxdraw.filled_polygon producing incorrect image #132

Closed thautwarm closed 2 years ago

thautwarm commented 2 years ago

Hi Tom!

The following statement in pygame-sdl2 behaves differently in pygame:

# 'color' is an uint8 triple
# 'Map' is an SDL Surface  
pygame.draw.polygon(Map, color, points)

With data provided in this file, pygame(simple pip install-ed one) produces: by-pygame

pygame-sdl2 produces: by-pygame-sdl

I tried many images but pygame-sdl2 always ignore the rightmost part and did no coloring.

also tried directly feed parameters to gfxdraw.filled_polygon and the results didn't change.

thautwarm commented 2 years ago

OS info: 18.04-1 Ubuntu x86_64

thautwarm commented 2 years ago

It works. The problem is pygame_sdl2.image.save.