DEADSOFTWARE

fixed garbage on textures with transparency, implemented GetScancodeName
[d2df-sdl.git] / src / nogl / noGLALSW.inc
index 3f32dce7da3017af254de531b5300619863b22ad..bec8350941184b5f5453209c1d24a4a9cc462864 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 DEFAULT_DEPTH <= 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)