X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=contrib%2Fsupertux-nogl.diff;h=f67baae10840b1a70601d07e0ae5c48ab6a3d20b;hb=959f514b78262ae6b276821bc61864fa6967b97c;hp=858474f6c91681e6b496c0c44afd183ea0edbbeb;hpb=561d285b2ea0fc084f54ef62b1f9c9d65a4877c8;p=supertux.git diff --git a/contrib/supertux-nogl.diff b/contrib/supertux-nogl.diff index 858474f6c..f67baae10 100644 --- a/contrib/supertux-nogl.diff +++ b/contrib/supertux-nogl.diff @@ -290,7 +290,7 @@ diff -aur supertux/src/video/drawing_context.cpp supertux-nogl/src/video/drawing DrawingRequest request; request.type = FILLRECT; -@@ -238,39 +239,14 @@ +@@ -238,39 +239,20 @@ } void @@ -301,7 +301,13 @@ diff -aur supertux/src/video/drawing_context.cpp supertux-nogl/src/video/drawing - && ambient_color.blue == 1.0f ) { - *color = Color( 1.0f, 1.0f, 1.0f); - return; -- } ++ static int i = 0; ++ i += 1; i &= 0xFFFF; ++ if (i & 0x8000) { ++ *color = Color(0.0f, 0.0f, 0.0f); ++ } else { ++ *color = Color(1.0f, 1.0f, 1.0f); + } - DrawingRequest request; - request.type = GETLIGHT; - request.pos = transform.apply(position); @@ -311,7 +317,6 @@ diff -aur supertux/src/video/drawing_context.cpp supertux-nogl/src/video/drawing - getlightrequest->color_ptr = color; - request.request_data = getlightrequest; - lightmap_requests.push_back(request); -+ *color = Color(1.0f, 1.0f, 1.0f); } void