mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-11 05:19:18 +03:00
Don't do higher quality scaling on OS4.0 as it doesn't work.
svn path=/trunk/netsurf/; revision=8484
This commit is contained in:
parent
ebe0db1864
commit
af4f3d2be7
@ -395,7 +395,6 @@ struct BitMap *ami_getcachenativebm(struct bitmap *bitmap,int width,int height,s
|
||||
bsa.bsa_SrcBitMap = tbm;
|
||||
bsa.bsa_DestBitMap = scaledbm;
|
||||
bsa.bsa_Flags = 0;
|
||||
if(option_scale_quality) bsa.bsa_Flags = BSAF_BILINEAR;
|
||||
|
||||
BitMapScale(&bsa);
|
||||
}
|
||||
|
@ -263,6 +263,7 @@ void ami_gui_opts_open(void)
|
||||
BOOL screenmodedisabled = FALSE, screennamedisabled = FALSE;
|
||||
BOOL proxyhostdisabled = TRUE, proxyauthdisabled = TRUE;
|
||||
BOOL disableanims, animspeeddisabled = FALSE;
|
||||
BOOL scaleselected = option_scale_quality, scaledisabled = FALSE;
|
||||
char animspeed[10];
|
||||
struct TextAttr fontsans, fontserif, fontmono, fontcursive, fontfantasy;
|
||||
|
||||
@ -318,6 +319,12 @@ void ami_gui_opts_open(void)
|
||||
animspeeddisabled = TRUE;
|
||||
}
|
||||
|
||||
if(GfxBase->lib_Version < 53)
|
||||
{
|
||||
scaledisabled = TRUE;
|
||||
scaleselected = FALSE;
|
||||
}
|
||||
|
||||
fontsans.ta_Name = ASPrintf("%s.font",option_font_sans);
|
||||
fontserif.ta_Name = ASPrintf("%s.font",option_font_serif);
|
||||
fontmono.ta_Name = ASPrintf("%s.font",option_font_mono);
|
||||
@ -684,9 +691,10 @@ void ami_gui_opts_open(void)
|
||||
LabelEnd,
|
||||
LAYOUT_AddChild, gow->gadgets[GID_OPTS_SCALEQ] = CheckBoxObject,
|
||||
GA_ID, GID_OPTS_SCALEQ,
|
||||
GA_Disabled, scaledisabled,
|
||||
GA_RelVerify, TRUE,
|
||||
GA_Text, gadlab[GID_OPTS_SCALEQ],
|
||||
GA_Selected, option_scale_quality,
|
||||
GA_Selected, scaleselected,
|
||||
CheckBoxEnd,
|
||||
LayoutEnd, // images
|
||||
CHILD_WeightedHeight, 0,
|
||||
|
@ -76,7 +76,6 @@ bool thumbnail_create(struct content *content, struct bitmap *bitmap,
|
||||
bsa.bsa_SrcBitMap = browserglob.bm;
|
||||
bsa.bsa_DestBitMap = bitmap->nativebm;
|
||||
bsa.bsa_Flags = 0;
|
||||
if(option_scale_quality) bsa.bsa_Flags = BSAF_AVERAGE;
|
||||
|
||||
BitMapScale(&bsa);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user