1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 10:48:51 -05:00

Remove C++-isms in Mir port

Related to #568.
This commit is contained in:
Camilla Berglund 2015-07-31 14:01:33 +02:00
parent 0a1225d0df
commit f6defeff5d
2 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@ void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos)
*ypos = monitor->mir.y; *ypos = monitor->mir.y;
} }
void FillInRGBBitsFromPixelFormat(GLFWvidmode* mode, MirPixelFormat const pf) void FillInRGBBitsFromPixelFormat(GLFWvidmode* mode, const MirPixelFormat pf)
{ {
switch (pf) switch (pf)
{ {

View File

@ -702,7 +702,7 @@ int _glfwPlatformCreateCursor(_GLFWcursor* cursor,
return GL_TRUE; return GL_TRUE;
} }
char const* getSystemCursorName(int shape) const char* getSystemCursorName(int shape)
{ {
switch (shape) switch (shape)
{ {
@ -725,7 +725,7 @@ char const* getSystemCursorName(int shape)
int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape) int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape)
{ {
char const* cursor_name = getSystemCursorName(shape); const char* cursor_name = getSystemCursorName(shape);
if (cursor_name) if (cursor_name)
{ {