b=127513 r=rods sr=attinasi a=shaver. Fixes windows 98 problems with the PatBlt.

This commit is contained in:
dcone%netscape.com 2002-02-27 02:10:04 +00:00
Родитель af0ddb33ec
Коммит d1cb7d269b
1 изменённых файлов: 10 добавлений и 3 удалений

Просмотреть файл

@ -967,9 +967,16 @@ nsImageWin :: PatBltTile(nsIRenderingContext &aContext, nsDrawingSurface aSurfac
if (PR_TRUE != gIsWinNT) {
if((mBHead->biWidth<8)||(mBHead->biHeight<8)){
return PR_FALSE; // this does not seem to work on win 98
}
// Windows 98 can not have a brush smaller than 8x8. There is also a know bug
// that crashes windows 98
// (http://support.microsoft.com/default.aspx?scid=kb;EN-US;q235618)
// if you have the wrong driver installed.. and the patBlt
// for some reason.. really hits this problem..
// Windows 95 seems to have other requirements that may have to do with a power
// of 2 size requirement based on some comments in other bugs.
// I will have 98 and 95 fail this test because of all the problems those OS's cause
// Win 2k, NT and XP all tested and seem to work fine with PatBlt.
return PR_FALSE;
}
if (PR_FALSE==mCanOptimize) {