Fix fuzz background drawing on ratios taller than 16:10.
This commit is contained in:
parent
befda08710
commit
48db16e7aa
2 changed files with 11 additions and 3 deletions
|
|
@ -1,3 +1,3 @@
|
|||
[default]
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r44 \cu(Wed 20 Apr 17:22:35 CEST 2022)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r44 \cu(2022-04-20 17:22:35)\c-";
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r45 \cu(Fri 22 Apr 12:39:40 CEST 2022)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r45 \cu(2022-04-22 12:39:40)\c-";
|
||||
|
|
|
|||
|
|
@ -519,7 +519,15 @@ Class DemolitionistMenu : GenericMenu
|
|||
{
|
||||
if ( isclosing ) return;
|
||||
// draw the background and main frame
|
||||
if ( swwm_fuzz ) Screen.DrawTexture(FancyBg,false,origin.x,origin.y,DTA_VirtualWidthF,ss.x,DTA_VirtualHeightF,ss.y,DTA_KeepRatio,true,DTA_LegacyRenderStyle,STYLE_Add,DTA_Alpha,.5,DTA_ClipBottom,int((origin.y+ws.y)*hs));
|
||||
if ( swwm_fuzz )
|
||||
{
|
||||
// fuzz was designed for 16:10, so we'll have to extend it at taller ratios
|
||||
int count = int(ceil(ws.y/400.));
|
||||
Screen.SetClipRect(int(origin.x*hs),int(origin.y*hs),int(ws.x*hs),int(ws.y*hs));
|
||||
for ( int i=0; i<count; i++ )
|
||||
Screen.DrawTexture(FancyBg,false,origin.x,origin.y+400.*i,DTA_VirtualWidthF,ss.x,DTA_VirtualHeightF,ss.y,DTA_KeepRatio,true,DTA_LegacyRenderStyle,STYLE_Add,DTA_Alpha,.5);
|
||||
Screen.ClearClipRect();
|
||||
}
|
||||
Screen.Dim("Black",.8,int(origin.x*hs),int(origin.y*hs),int(ws.x*hs),int(ws.y*hs));
|
||||
DrawFrame(0,0,ws.x,ws.y,true);
|
||||
// draw top and bottom separators
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue