mirror of
https://github.com/raysan5/raylib.git
synced 2026-04-24 15:53:58 -04:00
REVIEWED: rlsw, use provided library information
This commit is contained in:
6
src/external/rlsw.h
vendored
6
src/external/rlsw.h
vendored
@ -4050,9 +4050,9 @@ const char *swGetString(SWget name)
|
|||||||
|
|
||||||
switch (name)
|
switch (name)
|
||||||
{
|
{
|
||||||
case SW_VENDOR: result = "RLSW Header"; break;
|
case SW_VENDOR: result = "RLSW"; break;
|
||||||
case SW_RENDERER: result = "RLSW Software Renderer"; break;
|
case SW_RENDERER: result = "RLSW OpenGL Software Renderer"; break;
|
||||||
case SW_VERSION: result = "RLSW 1.0"; break;
|
case SW_VERSION: result = RLSW_VERSION; break;
|
||||||
case SW_EXTENSIONS: result = "None"; break;
|
case SW_EXTENSIONS: result = "None"; break;
|
||||||
default: RLSW.errCode = SW_INVALID_ENUM; break;
|
default: RLSW.errCode = SW_INVALID_ENUM; break;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2166,7 +2166,7 @@ static KeyboardKey ConvertScancodeToKey(SDL_Scancode sdlScancode)
|
|||||||
return mapScancodeToKey[sdlScancode];
|
return mapScancodeToKey[sdlScancode];
|
||||||
}
|
}
|
||||||
|
|
||||||
return KEY_NULL; // No equivalent key in Raylib
|
return KEY_NULL; // No equivalent key in raylib
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get next codepoint in a byte sequence and bytes processed
|
// Get next codepoint in a byte sequence and bytes processed
|
||||||
|
|||||||
@ -1652,9 +1652,9 @@ int InitPlatform(void)
|
|||||||
if (rlGetVersion() == RL_OPENGL_SOFTWARE) // Using software renderer
|
if (rlGetVersion() == RL_OPENGL_SOFTWARE) // Using software renderer
|
||||||
{
|
{
|
||||||
TRACELOG(LOG_INFO, "GL: OpenGL device information:");
|
TRACELOG(LOG_INFO, "GL: OpenGL device information:");
|
||||||
TRACELOG(LOG_INFO, " > Vendor: %s", "raylib");
|
TRACELOG(LOG_INFO, " > Vendor: %s", glGetString(GL_VENDOR));
|
||||||
TRACELOG(LOG_INFO, " > Renderer: %s", "rlsw - OpenGL Software Renderer");
|
TRACELOG(LOG_INFO, " > Renderer: %s", glGetString(GL_RENDERER));
|
||||||
TRACELOG(LOG_INFO, " > Version: %s", "1.0");
|
TRACELOG(LOG_INFO, " > Version: %s", glGetString(GL_VERSION));
|
||||||
TRACELOG(LOG_INFO, " > GLSL: %s", "NOT SUPPORTED");
|
TRACELOG(LOG_INFO, " > GLSL: %s", "NOT SUPPORTED");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1870,7 +1870,8 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpara
|
|||||||
// WARNING: Don't trust the docs, they say this message can not be obtained if not calling DefWindowProc()
|
// WARNING: Don't trust the docs, they say this message can not be obtained if not calling DefWindowProc()
|
||||||
// in response to WM_WINDOWPOSCHANGED but looks like when a window is created,
|
// in response to WM_WINDOWPOSCHANGED but looks like when a window is created,
|
||||||
// this message can be obtained without getting WM_WINDOWPOSCHANGED
|
// this message can be obtained without getting WM_WINDOWPOSCHANGED
|
||||||
HandleWindowResize(hwnd, &platform.appScreenWidth, &platform.appScreenHeight);
|
// WARNING: This call fails for Software-Renderer backend
|
||||||
|
//HandleWindowResize(hwnd, &platform.appScreenWidth, &platform.appScreenHeight);
|
||||||
} break;
|
} break;
|
||||||
//case WM_MOVE
|
//case WM_MOVE
|
||||||
case WM_WINDOWPOSCHANGED:
|
case WM_WINDOWPOSCHANGED:
|
||||||
|
|||||||
Reference in New Issue
Block a user