Adjust static text scale
This commit is contained in:
parent
de41e46518
commit
6e65c122ae
2 changed files with 5 additions and 5 deletions
|
|
@ -1,3 +1,3 @@
|
|||
[default]
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r14 \cu(Mon 4 Apr 14:38:16 CEST 2022)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r14 \cu(2022-04-04 14:38:16)\c-";
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r15 \cu(Mon 4 Apr 14:51:24 CEST 2022)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r15 \cu(2022-04-04 14:51:24)\c-";
|
||||
|
|
|
|||
|
|
@ -571,14 +571,14 @@ Class ListMenuItemSWWMStaticTextM : ListMenuItem
|
|||
int h = desc?desc.DisplayHeight():-1;
|
||||
if ( w == ListMenuDescriptor.CleanScale )
|
||||
{
|
||||
double x = (320-mFont.StringWidth(text))/2;
|
||||
double x = int(320-mFont.StringWidth(text)*1.5)/2;
|
||||
double y = mYpos;
|
||||
SWWMUtility.AdjustClean_1(x,y);
|
||||
Screen.DrawText(mFont,mColor,x,y,text,DTA_CleanNoMove_1,true);
|
||||
Screen.DrawText(mFont,mColor,x,y,text,DTA_ScaleX,CleanXFac_1*1.5,DTA_ScaleY,CleanYFac_1*1.5);
|
||||
}
|
||||
else
|
||||
{
|
||||
double x = (w-mFont.StringWidth(text))/2;
|
||||
double x = int(w-mFont.StringWidth(text)*1.5)/2;
|
||||
Screen.DrawText(mFont,mColor,x,mYpos,text,DTA_VirtualWidth,w,DTA_VirtualHeight,h,DTA_FullscreenScale,FSMode_ScaleToFit43);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue