rem: if( width == 16 && height == 16 ) {
add: if( width == 64 && height == 64 ) {
context: ui_create_bitmap(int width, int height, uint8 *data){  struct RastPort* rp;  struct BitMap*   bmp;  rp  = xmalloc( sizeof( *rp ) );    if( rp != NULL )  {    InitRastPort( rp );        bmp = AllocBitMap( width, height, 8, BMF_MINPLANES, amiga_window->RPort->BitMap );        if( bmp != NULL )    {      rp->BitMap = bmp;      amiga_write_pixels( rp, 0, 0, width, height, data, width );    }    else    {      xfree( rp );      rp = NULL;    }  }//  printf("create_bitmap (%dx%d)\n", width, height );#if 0  if( width == 16 && height == 16 ) {    int x, y;    unsigned char* p = data;    for( y = 0; y < height; ++y ) {      for( x = 0; x < width; ++x ) {	printf( "%02x ", *p++ );      }      printf( "\n" );    }    printf( "remapped:\n" );    p = data;    for( y = 0; y < height; ++y ) {      for( x = 0; x < width; ++x ) {	printf( "%02x ", amiga_pens[*p++] );      }      printf( "\n" );    }    printf( "expanded:\n" );    p = data;        for( y = 0; y < height; ++y ) {      for( x = 0; x < width; ++x ) {	printf( "%03x ", GetRGB4(amiga_window->WScreen->ViewPort.ColorMap, amiga_pens[*p++]));      }      printf( "\n" );    }  }#endif      return (HBITMAP) rp;}