diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2009-07-05 18:15:55 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2009-07-05 18:15:55 +0000 |
commit | ab2391ade1592936b95b106d17a77ff09ba852a8 (patch) | |
tree | 8bcccb62cc83f355af7dc5a5006ee002d59a112f /amiga/gui.c | |
parent | 0d879c2e7f336a4902b15b68d4a649b86ac1f685 (diff) | |
download | netsurf-ab2391ade1592936b95b106d17a77ff09ba852a8.tar.gz netsurf-ab2391ade1592936b95b106d17a77ff09ba852a8.tar.bz2 |
Don't make the global bitmap a friend of the screen bitmap, instead allocate it so
that alpha blitting and Cairo operations work correctly. Running NetSurf on a 16-bit
screen is now possible without bits of the display missing or obliterated, however it
does suffer a small performance hit.
svn path=/trunk/netsurf/; revision=8331
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-x | amiga/gui.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index d1992576a..0c7f87a2e 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -509,7 +509,7 @@ void ami_openscreen(void) if(screenmodereq = AllocAslRequest(ASL_ScreenModeRequest,NULL)) { AslRequestTags(screenmodereq, - ASLSM_MinDepth,24, + ASLSM_MinDepth,16, ASLSM_MaxDepth,32, TAG_DONE); @@ -593,8 +593,7 @@ void gui_init2(int argc, char** argv) if(!option_direct_render) { glob.bm = p96AllocBitMap(scrn->Width,scrn->Width,32, - BMF_CLEAR | BMF_DISPLAYABLE | BMF_INTERLEAVED, - scrn->RastPort.BitMap,RGBFB_A8R8G8B8); + BMF_INTERLEAVED, NULL, RGBFB_A8R8G8B8); if(!glob.bm) warn_user("NoMemory",""); |