May be i am wrong , but...
// Pixels physical range are: for x - 0...239 !!! and for y - 0...319
void gp_SetPixel16 ( int x, int y, u16 c, u16 *framebuffer )
{
// unsigned short *addr;
//addr = framebuffer;
// do not check coordinates check !
// y%240 and x%320 - this is very bad...