Skip to content

Commit

Permalink
Merge branch 'dlannan-nuklear_add_cursors'
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Oct 24, 2024
2 parents c256380 + 01fafee commit 6489610
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## Updates

### 24-Oct-2024

- sokol_nuklear.h: Merged https://github.com/floooh/sokol/pull/1138 which
allows to use Nuklear's software mouse cursors. Many thanks to @dlannan!

### 22-Oct-2024

- sokol_imgui.h: Fixed for latest Dear ImGui version 1.91.4 (Dear ImGui has
Expand Down
2 changes: 2 additions & 0 deletions util/sokol_nuklear.h
Original file line number Diff line number Diff line change
Expand Up @@ -2152,6 +2152,8 @@ SOKOL_API_IMPL void snk_setup(const snk_desc_t* desc) {
nk_font_atlas_cleanup(&_snuklear.atlas);
if (_snuklear.atlas.default_font) {
nk_style_set_font(&_snuklear.ctx, &_snuklear.atlas.default_font->handle);
// This adds the default cursors into the nuklear overlay for use.
nk_style_load_all_cursors(&_snuklear.ctx, &_snuklear.atlas.cursors[0]);
}
}

Expand Down

0 comments on commit 6489610

Please sign in to comment.