Skip to content

Commit

Permalink
Merge branch 'nuklear_add_cursors' of https://github.com/dlannan/sokol
Browse files Browse the repository at this point in the history
…into dlannan-nuklear_add_cursors
  • Loading branch information
floooh committed Oct 24, 2024
2 parents c256380 + a3c84de commit e46099f
Showing 1 changed file with 2 additions and 0 deletions.
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 e46099f

Please sign in to comment.