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:
Chris Young 2009-07-12 18:10:14 +00:00
parent ebe0db1864
commit af4f3d2be7
3 changed files with 9 additions and 3 deletions

View File

@ -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);
}

View File

@ -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,

View File

@ -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);
}