aboutsummaryrefslogtreecommitdiffstats
path: root/Game
diff options
context:
space:
mode:
authormogguh <mogguh@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-04-17 16:09:34 +0000
committermogguh <mogguh@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-04-17 16:09:34 +0000
commit033bd987a8d704aa7eb62e1cdd572694d3cd728d (patch)
treebbe583893014c1f9c8332f60d9662b0bcbb54a51 /Game
parent8387556043b3fa84b570df28c0ef857a99c08225 (diff)
downloadusdx-033bd987a8d704aa7eb62e1cdd572694d3cd728d.tar.gz
usdx-033bd987a8d704aa7eb62e1cdd572694d3cd728d.tar.xz
usdx-033bd987a8d704aa7eb62e1cdd572694d3cd728d.zip
Bugfix: Fixed minor problem that caused artefacts to be drawn - 'transparent' now works with #ffffff and #fefefe (UTexture.pas)
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@104 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game')
-rw-r--r--Game/Code/Classes/UTexture.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/Game/Code/Classes/UTexture.pas b/Game/Code/Classes/UTexture.pas
index b50ab6bf..4a8fa786 100644
--- a/Game/Code/Classes/UTexture.pas
+++ b/Game/Code/Classes/UTexture.pas
@@ -361,7 +361,7 @@ begin
for Pet := 0 to TexOrygH-1 do begin
for Pet2 := 0 to TexOrygW-1 do begin
Pix := TextureB.Canvas.Pixels[Pet2, Pet];
- if Pix = Col then begin
+ if ((Pix = $fefefe) or (Pix = Col)) then begin //Small fix, that caused artefacts to be drawn (#fe == dec254)
TextureD32[Pet*TexNewW + Pet2 + 1, 1] := 0;
TextureD32[Pet*TexNewW + Pet2 + 1, 2] := 0;
TextureD32[Pet*TexNewW + Pet2 + 1, 3] := 0;