PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Known errors GapiDraw 2.01b

Hi,

I just thought I should post in the forum as well. GapiDraw 2.02 is due out in a couple of weeks. Sorry for the potential trouble these issues may cause.

1. Calling AlphaBlt with a CGapiRGBASurface with a destination rectangle in a different size than the source surface causes rendering errors

Unfortunately it is not possible to stretch and alphablt simultaneously in GapiDraw 2.01. Please wait for 2.02 to be released.

Status: Acknowledged

Fixed in GapiDraw 2.02 due out soon.

-----

2. GDALPHABLTFAST_OPACITY and GDALPHABLT_OPACITY does not work on pixels where the alpha map value is 255.

GapiDraw contains many optimizations, and sometimes it is difficult to test all variations of all operations. A temporary workaround to this issue is to modify your alpha or png images so that they are slightly transparent (alpha=254) where they should appear totally opaque (alpha=255). Please be sure to change the images again in GapiDraw 2.02 for a nice performance boost (pixels where alpha=255 will not be alpha blended but simply copied using 32-bit memory writes).

Status: Acknowledged

Fixed in GapiDraw 2.02 due out soon.

-----

3. CGapiBitmapFont::CreateFont returns GD_OK, but CGapiSurface::DrawText returns GDERR_INVALIDRECT

This error can appear if your bitmap font contains more characters than the ASCII string passed to CGapiBitmapFont::CreateFont. Please make sure that the ASCII string passed to CGapiBitmapFont::CreateFont and the bitmap image used to create the font both contain an equal number of characters.

Status: Acknowledged

The upcoming version GapiDraw 2.02 allows ASCII strings with fewer characters than the bitmap font.