ref: 9dadfac8d865fb30c9d937a4b6c82bead379608b
parent: 187cf4397cc5b44b2c1794231efda7117c4fc651
author: David <gek@katherine>
date: Mon Feb 15 19:59:19 EST 2021
demo update
--- a/SDL_Examples/gears.c
+++ b/SDL_Examples/gears.c
@@ -377,11 +377,11 @@
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
draw();
- glDrawText((unsigned char*)"RED text", 0, 0, 0x000000FF);
+ glDrawText((unsigned char*)"RED text", 0, 0, 0xFF0000);
- glDrawText((unsigned char*)"GREEN text", 0, 24, 0x0000FF00);
+ glDrawText((unsigned char*)"GREEN text", 0, 24, 0x00FF00);
- glDrawText((unsigned char*)"BLUE text", 0, 48, 0x00FF0000);
+ glDrawText((unsigned char*)"BLUE text", 0, 48, 0xFF);
// swap buffers:
if (SDL_MUSTLOCK(screen) && (SDL_LockSurface(screen) < 0)) {
fprintf(stderr, "SDL ERROR: Can't lock screen: %s\n", SDL_GetError());