Skip to content

Commit c5eaba1

Browse files
committed
Update libtcod.
1 parent 429fa5d commit c5eaba1

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

CHANGELOG.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ Unreleased
1111
Added
1212
- New context method `Context.new_console`.
1313

14+
Changed
15+
- Using `libtcod 1.16.0-alpha.15`.
16+
1417
Deprecated
1518
- `Context.recommended_console_size` has been replaced with
1619
`Context.new_console`.

tcod/context.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,8 +443,8 @@ def new(
443443
"struct TCOD_ContextParams*",
444444
{
445445
"tcod_version": lib.TCOD_COMPILEDVERSION,
446-
"x": x if x is not None else lib.SDL_WINDOWPOS_UNDEFINED,
447-
"y": y if y is not None else lib.SDL_WINDOWPOS_UNDEFINED,
446+
"window_x": x if x is not None else lib.SDL_WINDOWPOS_UNDEFINED,
447+
"window_y": y if y is not None else lib.SDL_WINDOWPOS_UNDEFINED,
448448
"pixel_width": width or 0,
449449
"pixel_height": height or 0,
450450
"columns": columns or 0,
@@ -458,6 +458,7 @@ def new(
458458
"argv": argv_c,
459459
"cli_output": ffi.addressof(lib, "_pycall_cli_output"),
460460
"cli_userdata": catch_handle,
461+
"window_xy_defined": True,
461462
},
462463
)
463464
context_pp = ffi.new("TCOD_Context**")

0 commit comments

Comments
 (0)