Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.11)
project(raylib_nuklear
DESCRIPTION "raylib_nuklear: Nuklear immediate mode GUI for raylib."
HOMEPAGE_URL "https://github.com/robloach/raylib-nuklear"
VERSION 5.5.0
VERSION 6.0.0
LANGUAGES C
)

Expand Down
3 changes: 2 additions & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ if (NOT raylib_FOUND)
FetchContent_Declare(
raylib
GIT_REPOSITORY https://github.com/raysan5/raylib.git
GIT_TAG 5.5
# TODO: Update to 6.0
GIT_TAG 6ef0044381c71d76ba0784e8c98aab28e26b817a
GIT_SHALLOW 1
)
FetchContent_GetProperties(raylib)
Expand Down
8 changes: 2 additions & 6 deletions include/raylib-nuklear.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/**********************************************************************************************
*
* raylib-nuklear v5.5.0 - Nuklear GUI for Raylib.
* raylib-nuklear v6.0.0 - Nuklear GUI for Raylib.
*
* FEATURES:
* - Use the Nuklear immediate-mode graphical user interface in raylib.
*
* DEPENDENCIES:
* - raylib 5.5+ https://www.raylib.com/
* - raylib 6.0+ https://www.raylib.com/
* - Nuklear https://github.com/Immediate-Mode-UI/Nuklear
*
* LICENSE: zlib/libpng
Expand Down Expand Up @@ -523,11 +523,7 @@ DrawNuklear(struct nk_context * ctx)
rect.y += ((float) r->line_thickness) * scale + 1.0f;
rect.width = NK_MAX(rect.width - (2 * ((float) r->line_thickness) * scale + 1.0f), 0.0f);
rect.height = NK_MAX(rect.height - (2 * ((float) r->line_thickness) * scale + 1.0f), 0.0f);
#if RAYLIB_VERSION_MAJOR >= 5 && RAYLIB_VERSION_MINOR == 0
DrawRectangleRoundedLines(rect, roundness, RAYLIB_NUKLEAR_DEFAULT_ARC_SEGMENTS, (float)r->line_thickness * scale, color);
#else
DrawRectangleRoundedLinesEx(rect, roundness, RAYLIB_NUKLEAR_DEFAULT_ARC_SEGMENTS, (float)r->line_thickness * scale, color);
#endif
}
else {
DrawRectangleLinesEx(rect, r->line_thickness * scale, color);
Expand Down