Skip to content

Commit 85df4e7

Browse files
committed
REVIEWED: rlsw, use provided library information
1 parent f23319d commit 85df4e7

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

src/external/rlsw.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4050,9 +4050,9 @@ const char *swGetString(SWget name)
40504050

40514051
switch (name)
40524052
{
4053-
case SW_VENDOR: result = "RLSW Header"; break;
4054-
case SW_RENDERER: result = "RLSW Software Renderer"; break;
4055-
case SW_VERSION: result = "RLSW 1.0"; break;
4053+
case SW_VENDOR: result = "RLSW"; break;
4054+
case SW_RENDERER: result = "RLSW OpenGL Software Renderer"; break;
4055+
case SW_VERSION: result = RLSW_VERSION; break;
40564056
case SW_EXTENSIONS: result = "None"; break;
40574057
default: RLSW.errCode = SW_INVALID_ENUM; break;
40584058
}

src/platforms/rcore_desktop_sdl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2166,7 +2166,7 @@ static KeyboardKey ConvertScancodeToKey(SDL_Scancode sdlScancode)
21662166
return mapScancodeToKey[sdlScancode];
21672167
}
21682168

2169-
return KEY_NULL; // No equivalent key in Raylib
2169+
return KEY_NULL; // No equivalent key in raylib
21702170
}
21712171

21722172
// Get next codepoint in a byte sequence and bytes processed

src/platforms/rcore_desktop_win32.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,9 +1652,9 @@ int InitPlatform(void)
16521652
if (rlGetVersion() == RL_OPENGL_SOFTWARE) // Using software renderer
16531653
{
16541654
TRACELOG(LOG_INFO, "GL: OpenGL device information:");
1655-
TRACELOG(LOG_INFO, " > Vendor: %s", "raylib");
1656-
TRACELOG(LOG_INFO, " > Renderer: %s", "rlsw - OpenGL Software Renderer");
1657-
TRACELOG(LOG_INFO, " > Version: %s", "1.0");
1655+
TRACELOG(LOG_INFO, " > Vendor: %s", glGetString(GL_VENDOR));
1656+
TRACELOG(LOG_INFO, " > Renderer: %s", glGetString(GL_RENDERER));
1657+
TRACELOG(LOG_INFO, " > Version: %s", glGetString(GL_VERSION));
16581658
TRACELOG(LOG_INFO, " > GLSL: %s", "NOT SUPPORTED");
16591659
}
16601660

@@ -1870,7 +1870,8 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpara
18701870
// WARNING: Don't trust the docs, they say this message can not be obtained if not calling DefWindowProc()
18711871
// in response to WM_WINDOWPOSCHANGED but looks like when a window is created,
18721872
// this message can be obtained without getting WM_WINDOWPOSCHANGED
1873-
HandleWindowResize(hwnd, &platform.appScreenWidth, &platform.appScreenHeight);
1873+
// WARNING: This call fails for Software-Renderer backend
1874+
//HandleWindowResize(hwnd, &platform.appScreenWidth, &platform.appScreenHeight);
18741875
} break;
18751876
//case WM_MOVE
18761877
case WM_WINDOWPOSCHANGED:

0 commit comments

Comments
 (0)