Small tweaks.

This commit is contained in:
Relintai 2024-01-13 15:43:15 +01:00
parent c6bc1ea139
commit e21dcb59c8
3 changed files with 4 additions and 7 deletions

View File

@ -88,9 +88,6 @@ void GameScene::render() {
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
static float rotmi = 0;
if (render_type == 0) {

View File

@ -775,12 +775,12 @@ void AppWindow::create_default_cursors() {
}
}
void AppWindow::set_cursor_shape(unsigned mode) {
_cursorshape = (mode &= 7);
void AppWindow::set_cursor_shape(const CURSOR_SHAPES mode) {
_cursorshape = static_cast<int>(mode);
create_default_cursors();
glfwSetCursor(_window, mode < 7 ? cursors[mode] : NULL);
glfwSetCursor(_window, _cursorshape < 7 ? cursors[_cursorshape] : NULL);
}
void AppWindow::set_mouse_mode(MouseMode p_mode) {

View File

@ -113,7 +113,7 @@ public:
CURSOR_SW_AUTO, // software cursor, ui driven. note: this is the only icon that may be recorded or snapshotted
};
void set_cursor_shape(unsigned shape);
void set_cursor_shape(const CURSOR_SHAPES shape);
const char *get_clipboard();
void set_clipboard(const char *text);