DEADSOFTWARE

Added BPP switching
[d2df-sdl.git] / src / nogl / noGLALSW.inc
index bec8350941184b5f5453209c1d24a4a9cc462864..e06b9c3f2b3d6af2221424b7157dc03c59dc0da1 100644 (file)
@@ -200,7 +200,7 @@ implementation
     BLEND_DEFAULT:
       begin
         (* FIX texture colorize *)
-        if DEFAULT_DEPTH <= 8 then
+        if sdl2allegro_bpp <= 8 then
         begin
           drawing_mode(DRAW_MODE_SOLID, nil, 0, 0)
         end
@@ -663,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);
@@ -710,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);