mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-03-11 17:42:54 +03:00
When forcing 32-bit render mode, don't create the BitMaps as friends of the screen BitMap.
This fixes a system freeze on OS4
This commit is contained in:
parent
beb6cebf1e
commit
5c8dccd5f6
@ -35,6 +35,7 @@ struct bitmap {
|
||||
int height;
|
||||
UBYTE *pixdata;
|
||||
bool opaque;
|
||||
int native;
|
||||
struct BitMap *nativebm;
|
||||
int nativebmwidth;
|
||||
int nativebmheight;
|
||||
|
@ -142,7 +142,7 @@ void ami_init_layers(struct gui_globals *gg, ULONG width, ULONG height, bool for
|
||||
} else {
|
||||
/* Force friend BitMaps on for obvious RTG screens under OS3.
|
||||
* If we get a bit smarter about this we can lose the user option. */
|
||||
if(depth >= 16) friend = scrn->RastPort.BitMap;
|
||||
if((depth >= 16) && (force32bit == false)) friend = scrn->RastPort.BitMap;
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -154,7 +154,7 @@ void ami_init_layers(struct gui_globals *gg, ULONG width, ULONG height, bool for
|
||||
* We get freezes and other problems on OS4 if we befriend at any
|
||||
* other depths, hence this check.
|
||||
*/
|
||||
if(depth >= 24) friend = scrn->RastPort.BitMap;
|
||||
if((depth >= 24) && (force32bit == false)) friend = scrn->RastPort.BitMap;
|
||||
#endif
|
||||
gg->bm = ami_rtg_allocbitmap(width, height, 32, 0, friend, RGBFB_A8R8G8B8);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user