if(is256Colors) tile *= 2;
LRESULT TileViewer::OnMapInfo(WPARAM wParam, LPARAM lParam){  u8 *colors = (u8 *)lParam;  zoom.setColors(colors);  int x = (wParam & 0xFFFF)/8;  int y = ((wParam >> 16) & 0xFFFF)/8;  u32 address = 0x6000000 + 0x4000 * charBase;  int tile = 32 * y + x;  address += 32 * tile;  char buffer[16];  sprintf(buffer, "%d", tile);  ::SetWindowText(GetDlgItem(IDC_TILE_NUMBER), buffer);  sprintf(buffer, "%08x", address);  ::SetWindowText(GetDlgItem(IDC_ADDRESS), buffer);    return TRUE;}