mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: imagelib: img_wad: dirty hack to fix black holes in console background images
This commit is contained in:
parent
7469d6a248
commit
ea3bfd969c
@ -311,13 +311,17 @@ qboolean Image_LoadLMP( const char *name, const byte *buffer, fs_offset_t filesi
|
|||||||
{
|
{
|
||||||
int numcolors;
|
int numcolors;
|
||||||
|
|
||||||
for( i = 0; i < pixels; i++ )
|
// HACKHACK: console background image shouldn't be transparent
|
||||||
|
if( !Q_stristr( name, "conback" ))
|
||||||
{
|
{
|
||||||
if( fin[i] == 255 )
|
for( i = 0; i < pixels; i++ )
|
||||||
{
|
{
|
||||||
image.flags |= IMAGE_HAS_ALPHA;
|
if( fin[i] == 255 )
|
||||||
rendermode = LUMP_MASKED;
|
{
|
||||||
break;
|
image.flags |= IMAGE_HAS_ALPHA;
|
||||||
|
rendermode = LUMP_MASKED;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pal = fin + pixels;
|
pal = fin + pixels;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user