mirror of
https://github.com/glest/glest-source.git
synced 2025-09-02 12:32:34 +02:00
ressources are rendered a bit nicer in the map preview ( glVertex2f instead if glVertex2i )
This commit is contained in:
@@ -3947,7 +3947,7 @@ void Renderer::renderMapPreview( const MapPreview *map, bool renderAll,
|
|||||||
if ( renderAll && (map->getObject(i, j) != 0) && (map->getObject(i, j) != 10) ){
|
if ( renderAll && (map->getObject(i, j) != 0) && (map->getObject(i, j) != 10) ){
|
||||||
glPointSize(cellSize / 2.f);
|
glPointSize(cellSize / 2.f);
|
||||||
glBegin(GL_POINTS);
|
glBegin(GL_POINTS);
|
||||||
glVertex2i(i * cellSize + cellSize / 2, clientH - j * cellSize - cellSize / 2);
|
glVertex2f(i * cellSize + cellSize / 2.f, clientH - j * cellSize - cellSize / 2.f);
|
||||||
glEnd();
|
glEnd();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user