nigelibrown
Member
I am using a 16bpp mode and the graphic background I conveted with GP32 Convert, is displayed as two quater size images on the left of the screen?
#include "image.h"
GpGraphicModeSet(GPC_DFLAG_16BPP, NULL);
GpLcdSurfaceGet(&gpDraw[0], 0);
GpLcdSurfaceGet(&gpDraw[1], 1);
GpSurfaceSet(&gpDraw[0]);
GpLcdEnable();
while(1) {
GpBitBlt( NULL, &gpDraw[flip], 0, 0, 320, 240, image, 0, 0, 320, 200 );
GpSurfaceFlip(&gpDraw[flip]);
flip = 1 - flip;
n_tick = GpTickCountGet();
while((GpTickCountGet()-n_tick)<1000);
}
#include "image.h"
GpGraphicModeSet(GPC_DFLAG_16BPP, NULL);
GpLcdSurfaceGet(&gpDraw[0], 0);
GpLcdSurfaceGet(&gpDraw[1], 1);
GpSurfaceSet(&gpDraw[0]);
GpLcdEnable();
while(1) {
GpBitBlt( NULL, &gpDraw[flip], 0, 0, 320, 240, image, 0, 0, 320, 200 );
GpSurfaceFlip(&gpDraw[flip]);
flip = 1 - flip;
n_tick = GpTickCountGet();
while((GpTickCountGet()-n_tick)<1000);
}