hacky hires scale "fix" for waiting screen
This commit is contained in:
1 parent
14f29cc029
commit
e63ba0cb7b
1 file changed
+6
-1
+6
-1
@@ -64,6 +64,7 @@ static patch_t *ttkflash; // flash screen
|
||||
|
||||
static patch_t *driver[2]; // Driving character on the waiting screen
|
||||
static UINT8 *waitcolormap; // colormap for the spinning character
|
||||
static INT32 waitscale = 1<<FRACBITS; // scale for the character on waiting screen; very hacky crap
|
||||
|
||||
static void F_SkyScroll(INT32 scrollspeed);
|
||||
|
||||
@@ -1165,6 +1166,7 @@ void F_StartWaitingPlayers(void)
|
||||
{
|
||||
INT32 i;
|
||||
INT32 randskin;
|
||||
boolean waithires = skins[randskin].flags && SF_HIRES;
|
||||
spriteframe_t *sprframe;
|
||||
|
||||
wipegamestate = GS_TITLESCREEN; // technically wiping from title screen
|
||||
@@ -1177,6 +1179,9 @@ void F_StartWaitingPlayers(void)
|
||||
|
||||
waitcolormap = R_GetTranslationColormap(randskin, skins[randskin].prefcolor, 0);
|
||||
|
||||
if (waithires)
|
||||
waitscale = waitscale * FIXED_TO_FLOAT(skins[randskin].highresscale); // need to set scale here cause im lazy
|
||||
|
||||
for (i = 0; i < 2; i++)
|
||||
{
|
||||
sprframe = &skins[randskin].spritedef.spriteframes[(6+(i*3)) & FF_FRAMEMASK];
|
||||
@@ -1205,7 +1210,7 @@ void F_WaitingPlayersDrawer(void)
|
||||
V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, 31);
|
||||
V_DrawCreditString((160 - (V_CreditStringWidth(waittext1)>>1))<<FRACBITS, 48<<FRACBITS, 0, waittext1);
|
||||
V_DrawCreditString((160 - (V_CreditStringWidth(waittext2)>>1))<<FRACBITS, 64<<FRACBITS, 0, waittext2);
|
||||
V_DrawFixedPatch((160<<FRACBITS) - driver[frame]->width / 2, 150<<FRACBITS, 1<<FRACBITS, flags, driver[frame], waitcolormap);
|
||||
V_DrawFixedPatch((160<<FRACBITS) - driver[frame]->width / 2, 150<<FRACBITS, waitscale, flags, driver[frame], waitcolormap); // "1<<FRACBITS"
|
||||
}
|
||||
|
||||
// ==========
|
||||
|
||||
Reference in new issue
Block a user