mirror of https://github.com/AxioDL/boo.git
Win32 default arrow cursor
This commit is contained in:
parent
b837af8690
commit
be37b22dd5
|
@ -94,13 +94,6 @@ public:
|
||||||
m_args(args),
|
m_args(args),
|
||||||
m_singleInstance(singleInstance)
|
m_singleInstance(singleInstance)
|
||||||
{
|
{
|
||||||
WIN32_CURSORS.m_arrow = LoadCursor(nullptr, IDC_ARROW);
|
|
||||||
WIN32_CURSORS.m_hResize = LoadCursor(nullptr, IDC_SIZEWE);
|
|
||||||
WIN32_CURSORS.m_vResize = LoadCursor(nullptr, IDC_SIZENS);
|
|
||||||
WIN32_CURSORS.m_ibeam = LoadCursor(nullptr, IDC_IBEAM);
|
|
||||||
WIN32_CURSORS.m_crosshairs = LoadCursor(nullptr, IDC_CROSS);
|
|
||||||
WIN32_CURSORS.m_wait = LoadCursor(nullptr, IDC_WAIT);
|
|
||||||
|
|
||||||
HMODULE dxgilib = LoadLibraryW(L"dxgi.dll");
|
HMODULE dxgilib = LoadLibraryW(L"dxgi.dll");
|
||||||
if (!dxgilib)
|
if (!dxgilib)
|
||||||
Log.report(LogVisor::FatalError, "unable to load dxgi.dll");
|
Log.report(LogVisor::FatalError, "unable to load dxgi.dll");
|
||||||
|
@ -399,6 +392,13 @@ int ApplicationRun(IApplication::EPlatformType platform,
|
||||||
platform != IApplication::EPlatformType::Auto)
|
platform != IApplication::EPlatformType::Auto)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
WIN32_CURSORS.m_arrow = LoadCursor(nullptr, IDC_ARROW);
|
||||||
|
WIN32_CURSORS.m_hResize = LoadCursor(nullptr, IDC_SIZEWE);
|
||||||
|
WIN32_CURSORS.m_vResize = LoadCursor(nullptr, IDC_SIZENS);
|
||||||
|
WIN32_CURSORS.m_ibeam = LoadCursor(nullptr, IDC_IBEAM);
|
||||||
|
WIN32_CURSORS.m_crosshairs = LoadCursor(nullptr, IDC_CROSS);
|
||||||
|
WIN32_CURSORS.m_wait = LoadCursor(nullptr, IDC_WAIT);
|
||||||
|
|
||||||
/* One class for *all* boo windows */
|
/* One class for *all* boo windows */
|
||||||
WNDCLASS wndClass =
|
WNDCLASS wndClass =
|
||||||
{
|
{
|
||||||
|
@ -414,7 +414,7 @@ int ApplicationRun(IApplication::EPlatformType platform,
|
||||||
L"BooWindow"
|
L"BooWindow"
|
||||||
};
|
};
|
||||||
wndClass.hIcon = LoadIconW(wndClass.hInstance, MAKEINTRESOURCEW(101));
|
wndClass.hIcon = LoadIconW(wndClass.hInstance, MAKEINTRESOURCEW(101));
|
||||||
|
wndClass.hCursor = WIN32_CURSORS.m_arrow;
|
||||||
RegisterClassW(&wndClass);
|
RegisterClassW(&wndClass);
|
||||||
|
|
||||||
APP = new ApplicationWin32(cb, uniqueName, friendlyName, pname, args, singleInstance);
|
APP = new ApplicationWin32(cb, uniqueName, friendlyName, pname, args, singleInstance);
|
||||||
|
|
Loading…
Reference in New Issue