Remove C++-isms in Mir port

Related to #568.
master
Camilla Berglund ago%!(EXTRA string=10 years)
parent 0a1225d0df
commit f6defeff5d
  1. 2
      src/mir_monitor.c
  2. 4
      src/mir_window.c

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

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

Loading…
Cancel
Save