diff --git a/README.md b/README.md index 5a3e9533..e5eaf70d 100644 --- a/README.md +++ b/README.md @@ -189,7 +189,7 @@ version: 0.1.0 dependencies: crsfml: - github: BlaXpirit/crsfml + github: oprypin/crsfml version: 1.2.3 ``` diff --git a/examples/diagnostics.cr b/examples/diagnostics.cr index ed66be8b..dbeb75d3 100644 --- a/examples/diagnostics.cr +++ b/examples/diagnostics.cr @@ -192,7 +192,7 @@ class KeyboardView < View case event.code when SF::Keyboard::BackSpace - @str = @str.chop + @str = @str.rchop when SF::Keyboard::Return @str += '\n' when SF::Keyboard::Tab diff --git a/shard.yml b/shard.yml index 7bf2e9af..ac743d69 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: crsfml -version: 2.4.4 +version: 2.4.5 authors: - Oleh Prypin @@ -9,7 +9,7 @@ description: | license: zlib -crystal: 0.20.4 +crystal: 0.22.0 libraries: - SFML: 2.4.1 + SFML: 2.4.2 diff --git a/src/common.cr b/src/common.cr index 3a0e7104..c95e12df 100644 --- a/src/common.cr +++ b/src/common.cr @@ -1,8 +1,8 @@ require "./sizes" module SF - VERSION = "2.4.4" - SFML_VERSION = "2.4.1" + VERSION = "2.4.5" + SFML_VERSION = "2.4.2" # Raised in shorthand class methods if initialization or resource loading fails class InitError < Exception diff --git a/src/window/obj.cr b/src/window/obj.cr index 47d1ef32..cf227f61 100644 --- a/src/window/obj.cr +++ b/src/window/obj.cr @@ -1936,8 +1936,6 @@ module SF # Enumeration of the window styles @[Flags] enum Style - # No border / title bar (this flag and all others are mutually exclusive) - None = 0 # Title bar + fixed border Titlebar = 1 << 0 # Title bar + resizable border + maximize button diff --git a/voidcsfml/CMakeLists.txt b/voidcsfml/CMakeLists.txt index a78542cf..e1856f03 100644 --- a/voidcsfml/CMakeLists.txt +++ b/voidcsfml/CMakeLists.txt @@ -242,9 +242,9 @@ list(APPEND CMAKE_MODULE_PATH "/usr/local/opt/sfml/share/SFML/cmake/Modules") # find_package(SFML 2.4 COMPONENTS system window graphics audio network REQUIRED ) -if(NOT "2.4.1" STREQUAL "${SFML_VERSION_MAJOR}.${SFML_VERSION_MINOR}.${SFML_VERSION_PATCH}") +if(NOT "2.4.2" STREQUAL "${SFML_VERSION_MAJOR}.${SFML_VERSION_MINOR}.${SFML_VERSION_PATCH}") message(WARNING - "Expecting SFML 2.4.1, " + "Expecting SFML 2.4.2, " "found SFML ${SFML_VERSION_MAJOR}.${SFML_VERSION_MINOR}.${SFML_VERSION_PATCH}" ) endif()