Skip to content

Commit 1a142ff

Browse files
committed
Fetch updates from libtcod and change the default renderer to SDL2.
1 parent 807fdca commit 1a142ff

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ Changes relevant to the users of python-tcod are documented here.
44
This project adheres to [Semantic Versioning](https://semver.org/) since version `2.0.0`.
55

66
## [Unreleased]
7+
### Changed
8+
- The SDL2 renderer has had a major performance update when compiled with SDL 2.0.18.
9+
- SDL2 is now the default renderer to avoid rare issues with the OpenGL 2 renderer.
710

811
## [13.6.0] - 2022-02-19
912
### Added

build_libtcod.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@
1515

1616
import build_sdl # noqa: E402
1717

18-
# The SDL2 version to parse and export symbols from.
19-
SDL2_PARSE_VERSION = os.environ.get("SDL_VERSION", "2.0.5")
20-
21-
# The SDL2 version to include in binary distributions.
22-
SDL2_BUNDLE_VERSION = os.environ.get("SDL_VERSION", "2.0.14")
23-
2418
Py_LIMITED_API = 0x03060000
2519

2620
HEADER_PARSE_PATHS = ("tcod/", "libtcod/src/libtcod/")

libtcod

Submodule libtcod updated 225 files

tcod/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ def new(
464464
Added the `console` parameter.
465465
"""
466466
if renderer is None:
467-
renderer = RENDERER_OPENGL2
467+
renderer = RENDERER_SDL2
468468
if sdl_window_flags is None:
469469
sdl_window_flags = SDL_WINDOW_RESIZABLE
470470
if argv is None:

0 commit comments

Comments
 (0)