Google-Code-Fork / tibiaapi

Automatically exported from code.google.com/p/tibiaapi
MIT License
0 stars 0 forks source link

SpriteReader #118

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Are these two parts necessary?
----
for (int i = 0; i < transparentPixels; i++)
{
    bitmap.SetPixel(counter % size,
        counter / size,
        Color.Transparent);
    counter++;
}
----
while (counter < 1024)
{
    bitmap.SetPixel(counter % 32,
        counter / 32,
        Color.Transparent);
    counter++;
}
----
Because you could remove the second part and replace the first part with
counter += transparentPixels and it would the same thing. If this is
necessary please let me know why then you can change the status to
Won'tFix. Thanks.

Original issue reported on code.google.com by joebingham07@gmail.com on 5 Mar 2009 at 3:43

GoogleCodeExporter commented 9 years ago
Good point. I originally had this drawing the magenta color instead of 
transparent,
and I forgot that the default color is transparent. Go ahead and change it, 
good catch :)

Original comment by ian320 on 5 Mar 2009 at 2:44

GoogleCodeExporter commented 9 years ago
Fixed in r584.

Original comment by ian320 on 13 Mar 2009 at 9:19