1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:27:35 +00:00

Ports: Correct EOL in GLtron patch

The line endings for this patch were inadvertently normalized because
of our old `.gitattributes` rules.
This commit is contained in:
Jelle Raaijmakers 2022-01-12 00:29:54 +01:00 committed by Linus Groh
parent c0c72c6b91
commit 90d70479b8

View file

@ -1,9 +1,9 @@
--- gltron-0.70/nebu/video/video_system.c 2003-07-21 08:18:57.000000000 +0000
+++ gltron-0.70-patched/nebu/video/video_system.c 2022-01-10 00:39:53.078575380 +0000
+++ gltron-0.70-patched/nebu/video/video_system.c 2022-01-11 23:08:04.316789459 +0000
@@ -1,16 +1,17 @@
#include "Nebu_video.h"
-#include "SDL.h"
-#include "SDL.h"
+#include "SDL.h"
#include "SDL_opengl.h"
@ -40,9 +40,9 @@
fprintf(stderr, "[system] Couldn't set GL mode: %s\n", SDL_GetError());
exit(1); /* OK: critical, no visual */
}
- SDL_WM_SetCaption("GLtron", "");
- glClearColor(0,0,0,0);
- glClear(GL_COLOR_BUFFER_BIT);
- SDL_WM_SetCaption("GLtron", "");
- glClearColor(0,0,0,0);
- glClear(GL_COLOR_BUFFER_BIT);
- SDL_GL_SwapBuffers();
+ glcontext = SDL_GL_CreateContext(window);
+ SDL_SetWindowTitle(window, "GLtron");