Minor formating fixes.
This commit is contained in:
parent
6f53b0c069
commit
4df668e68f
76 changed files with 121 additions and 121 deletions
|
|
@ -26,4 +26,4 @@ public :
|
|||
|
||||
} // namespace sp
|
||||
|
||||
#endif /* SPECTRE_PLATFORM_H */
|
||||
#endif /* SPECTRE_PLATFORM_H */
|
||||
|
|
|
|||
|
|
@ -33,4 +33,4 @@ void PlatformDisplay::onReshape(int width, int height)
|
|||
m_parent->onReshape(width, height);
|
||||
}
|
||||
|
||||
} // namespace sp
|
||||
} // namespace sp
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
#ifndef SPECTRE_PLATFORM_DISPLAY_H
|
||||
#define SPECTRE_PLATFORM_DISPLAY_H
|
||||
#define SPECTRE_PLATFORM_DISPLAY_H
|
||||
|
||||
#include <Spectre/Math/Vector2.h>
|
||||
#include <Spectre/Display/DisplayDescription.h>
|
||||
|
|
@ -53,4 +53,4 @@ private :
|
|||
|
||||
} // namespace sp
|
||||
|
||||
#endif /* SPECTRE_PLATFORM_DISPLAY_H */
|
||||
#endif /* SPECTRE_PLATFORM_DISPLAY_H */
|
||||
|
|
|
|||
|
|
@ -97,4 +97,4 @@ LRESULT Win32Application::processMessage(MSG msg)
|
|||
return DispatchMessage(&msg);
|
||||
}
|
||||
|
||||
} // namespace sp
|
||||
} // namespace sp
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
namespace sp {
|
||||
|
||||
// Can't use GLAD's standard loader function because it
|
||||
// Can't use GLAD's standard loader function because it
|
||||
// calls wglGetProcAddress without __stdcall
|
||||
// that results in some runtime exception.
|
||||
static GLADapiproc func_loader(const char *name) {
|
||||
|
|
@ -186,4 +186,4 @@ bool Win32GLContext::setPixelFormat()
|
|||
return false;
|
||||
}
|
||||
|
||||
} // namespace sp
|
||||
} // namespace sp
|
||||
|
|
|
|||
|
|
@ -28,4 +28,4 @@ void Win32Input::update()
|
|||
{
|
||||
}
|
||||
|
||||
} // namespace sp
|
||||
} // namespace sp
|
||||
|
|
|
|||
|
|
@ -7,12 +7,12 @@ const char* Win32GetMessage(DWORD messageId) {
|
|||
static char buf[1024] = { '\0' };
|
||||
|
||||
DWORD rc = FormatMessage(
|
||||
FORMAT_MESSAGE_IGNORE_INSERTS |
|
||||
FORMAT_MESSAGE_FROM_SYSTEM,
|
||||
NULL, messageId,
|
||||
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
|
||||
FORMAT_MESSAGE_IGNORE_INSERTS |
|
||||
FORMAT_MESSAGE_FROM_SYSTEM,
|
||||
NULL, messageId,
|
||||
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
|
||||
buf, 1024, NULL);
|
||||
|
||||
|
||||
if (!rc) {
|
||||
strcpy_s(buf, "Unkown error!\n");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,4 +7,4 @@
|
|||
|
||||
const char* Win32GetMessage(DWORD messageId);
|
||||
|
||||
#endif /* PLATFORM_WIN32_INTERNAL_H */
|
||||
#endif /* PLATFORM_WIN32_INTERNAL_H */
|
||||
|
|
|
|||
|
|
@ -120,4 +120,4 @@ bool Win32Keyboard::handleMessage(MSG message)
|
|||
return msg_buf.postMessage(message);
|
||||
}
|
||||
|
||||
} // namespace sp
|
||||
} // namespace sp
|
||||
|
|
|
|||
|
|
@ -23,4 +23,4 @@ DisplayMode PlatformMisc::GetDesktopMode()
|
|||
return DisplayMode();
|
||||
}
|
||||
|
||||
} // namespace sp
|
||||
} // namespace sp
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ namespace sp {
|
|||
|
||||
static Win32MsgBuffer msg_buf;
|
||||
|
||||
static Vector2f _normalizePos(int x, int y, RECT area)
|
||||
static Vector2f _normalizePos(int x, int y, RECT area)
|
||||
{
|
||||
Vector2f out;
|
||||
|
||||
|
|
@ -75,8 +75,8 @@ void Win32Mouse::update(InputModule *input)
|
|||
m_state[MouseButton::Middle] = event.mouseButton.pressed;
|
||||
input->postInputEvent(event);
|
||||
|
||||
} else if (msg.message == WM_XBUTTONDOWN || msg.message == WM_XBUTTONUP) {
|
||||
|
||||
} else if (msg.message == WM_XBUTTONDOWN || msg.message == WM_XBUTTONUP) {
|
||||
|
||||
int btn = GET_XBUTTON_WPARAM(msg.wParam);
|
||||
InputEvent event(InputEvent::MouseButton);
|
||||
|
||||
|
|
@ -90,7 +90,7 @@ void Win32Mouse::update(InputModule *input)
|
|||
|
||||
InputEvent event(InputEvent::MousePosition);
|
||||
RECT area = GetClientArea(msg.hwnd);
|
||||
|
||||
|
||||
int x = LOWORD(msg.lParam);
|
||||
int y = HIWORD(msg.lParam);
|
||||
|
||||
|
|
@ -116,4 +116,4 @@ bool Win32Mouse::handleMessage(MSG message)
|
|||
return msg_buf.postMessage(message);
|
||||
}
|
||||
|
||||
} // namespace sp
|
||||
} // namespace sp
|
||||
|
|
|
|||
|
|
@ -19,4 +19,4 @@ bool Win32MsgBuffer::postMessage(MSG msg)
|
|||
return false;
|
||||
}
|
||||
|
||||
} // namespace sp
|
||||
} // namespace sp
|
||||
|
|
|
|||
|
|
@ -19,4 +19,4 @@ struct Win32MsgBuffer {
|
|||
|
||||
} // namespace sp
|
||||
|
||||
#endif /* PLATFORM_WIN32_MSG_BUFFER_H */
|
||||
#endif /* PLATFORM_WIN32_MSG_BUFFER_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue