~thopiekar/pygame/+git/pygame:sdl2-logical

Last commit made on 2020-04-16
Get this branch:
git clone -b sdl2-logical https://git.launchpad.net/~thopiekar/pygame/+git/pygame

Branch merges

Branch information

Name:
sdl2-logical
Repository:
lp:~thopiekar/pygame/+git/pygame

Recent commits

664fd12... by Robert Pfeiffer <email address hidden>

Merge branch 'master' into sdl2-logical

a29ae9f... by illume

Merge pull request #1638 from nthykier/deprecation-warnings-py38

pg_IntFromObj: Explicitly handle and convert floats

6d157c6... by illume

Merge pull request #1636 from charlesej/update-rect-docs

Update Rect docs with size 0 collision information

71a1370... by illume

Merge pull request #1634 from charlesej/fix-compiler-warnings

Fix draw.c compiler warnings (linux/gcc)

5529174... by illume

Merge pull request #1632 from nthykier/gh-1612-malloc-check

Fix some missing malloc error handling and memory-leak on error

d1680ff... by illume

Merge pull request #1631 from nthykier/doc-fix-get_window_size

display.rst: Correct reference to set_mode in get_window_size doc

8fdd4ee... by Niels Thykier

pg_IntFromObj: Explicitly handle and convert floats

Prior to this commit, running test/draw_test.py would trigger
deprecation warnings like below. The floats are passed "by design" to
ensure various PyGame API calls silentl accept floats (truncated to
ints).

```
python3 test/draw_test.py
pygame 2.0.0.dev7 (SDL 2.0.10, python 3.8.2)
Hello from the pygame community. https://www.pygame.org/contribute.html
......................ssss..................................................test/draw_test.py:5475: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
  draw.circle(
test/draw_test.py:5487: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
  draw.circle(
test/draw_test.py:5499: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
  draw.circle(pygame.Surface((2, 2)), (0, 0, 0, 50), (1.3, 1.3), 1.2)
........test/draw_test.py:5406: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
  bounds_rect = self.draw_circle(**kwargs)
....................................................test/draw_test.py:1393: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
  bounds_rect = self.draw_line(**kwargs)
.test/draw_test.py:1367: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
  bounds_rect = self.draw_line(**kwargs)
.......................test/draw_test.py:2062: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
  bounds_rect = self.draw_lines(**kwargs)
..........................test/draw_test.py:3964: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
  bounds_rect = self.draw_polygon(**kwargs)
...................test/draw_test.py:4680: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
  bounds_rect = self.draw_rect(**kwargs)
..
----------------------------------------------------------------------
Ran 207 tests in 7.086s

OK (skipped=4)
```

Signed-off-by: Niels Thykier <email address hidden>

1a711a5... by charles <email address hidden>

Update Rect docs with size 0 collision information

c3b61e0... by charles <email address hidden>

Fix draw.c compiler warnings (linux/gcc)

bbd6e39... by illume

Merge pull request #1630 from robertpfeiffer/empty-surface-fill

return early from surf.fill(x) on zero-size surf