Skip to content

Commit 5e7b72e

Browse files
committed
system and ui fixes
1 parent d390160 commit 5e7b72e

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

include/nbl/system/ISystem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ class ISystem : public core::IReferenceCounted
372372
bool deleteDirectory(const system::path& p)
373373
{
374374
if (std::filesystem::exists(p))
375-
return std::filesystem::remove(p);
375+
return std::filesystem::remove_all(p);
376376
else
377377
return false;
378378
}

include/nbl/ui/CWindowManagerWin32.h

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,16 @@ namespace nbl::ui
295295
case ERT_CHANGE_CURSOR_VISIBILITY:
296296
{
297297
auto& params = req.changeCursorVisibilityParam;
298-
ShowCursor(params.visible);
298+
if(params.visible)
299+
{
300+
int ret = ShowCursor(true);
301+
while (ret < 0) ret = ShowCursor(true);
302+
}
303+
else
304+
{
305+
int ret = ShowCursor(false);
306+
while (ret >= 0) ret = ShowCursor(false);
307+
}
299308
break;
300309
}
301310
}
@@ -313,6 +322,10 @@ namespace nbl::ui
313322
{
314323
req.destroyWindowParam = std::move(params);
315324
}
325+
else if constexpr (std::is_same_v<RequestParams, SRequestParams_ChangeCursorVisibility&>)
326+
{
327+
req.changeCursorVisibilityParam = std::move(params);
328+
}
316329
}
317330

318331
bool wakeupPredicate() const { return true; }

0 commit comments

Comments
 (0)