trying to use shockbolts tiles. In both Angband and FAA, I am unable to use his tiles, and I get the message "Cannot open file 64x64.png"
Using windows xp.
Fix for this?
thanks!
Using windows xp.
Fix for this?
thanks!
/* Copy the data to the DIB */
hBitmap = CreateDIBitmap(hDC, &(bi.bmiHeader), 0, NULL, &biSrc, DIB_RGB_COLORS);
if (hBitmap)
{
/* Hack for large PNG files */
byte errline = 2;
for (y = 0; y < height; ++y)
{
if (SetDIBits(hDC, hBitmap, height - y - 1, 1, row_pointers[y], &biSrc,
DIB_RGB_COLORS) != 1)
{
/* Hack -- Replace unreadable line by data from previous line */
if (!errline)
{
errline = 1;
/*plog_fmt("Error scanning line #%d, using previous line data instead.", y);*/
if (SetDIBits(hDC, hBitmap, height - y - 1, 1, row_pointers[y - 1], &biSrc,
DIB_RGB_COLORS) != 1)
{
errline = 2;
}
}
/* Hack -- Don't allow multiple unreadable lines */
else errline = 2;
}
else errline = 0;
if (errline == 2)
{
DeleteObject(hBitmap);
hBitmap = NULL;
noerror = FALSE;
break;
}
}
}
Comment