private static bool tile_is_right_edge(T2P_PAGE tiles, int tile) { if (((tile + 1) % tiles.tiles_tilecountx == 0) && (tiles.tiles_edgetilewidth != 0)) return true; return false; }