DEADSOFTWARE

Added BPP switching
[d2df-sdl.git] / src / nogl / noGLALSW.inc
index 3f32dce7da3017af254de531b5300619863b22ad..e06b9c3f2b3d6af2221424b7157dc03c59dc0da1 100644 (file)
@@ -200,8 +200,15 @@ implementation
     BLEND_DEFAULT:
       begin
         (* FIX texture colorize *)
-        set_saturation_blender(0, 0, 0, 0);
-        drawing_mode(DRAW_MODE_TRANS, nil, 0, 0)
+        if sdl2allegro_bpp <= 8 then
+        begin
+          drawing_mode(DRAW_MODE_SOLID, nil, 0, 0)
+        end
+        else
+        begin
+          set_color_blender(0, 0, 0, 0);
+          drawing_mode(DRAW_MODE_TRANS, nil, 0, 0)
+        end
       end
     else
       ASSERT(FALSE)
@@ -656,7 +663,7 @@ implementation
     p := pixels;
     if format = GL_RGBA then
     begin
-      if DEFAULT_DEPTH <= 8 then
+      if sdl2allegro_bpp <= 8 then
         trans := 0
       else
         trans := makeacol(255, 0, 255, 0);
@@ -703,7 +710,7 @@ implementation
     p := pixels;
     if format = GL_RGBA then
     begin
-      if DEFAULT_DEPTH <= 8 then
+      if sdl2allegro_bpp <= 8 then
         trans := 0
       else
         trans := makeacol(255, 0, 255, 0);