mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 16:10:54 +02:00
Isometric tiles now render the entire screen. Off screen tiles will not be rendered.
This commit is contained in:
@@ -25,6 +25,14 @@ void GL_ResetClipRect(void) {
|
||||
}
|
||||
|
||||
void GL_RenderImage(Image_t* image, int x, int y, int width, int height, int colorRemap, int shapeId) {
|
||||
if(x < 0 || y < 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(x >= ScreenWidth || y >= ScreenHeight) {
|
||||
return;
|
||||
}
|
||||
|
||||
ImVec2 mi(x, y);
|
||||
ImVec2 ma(x + width, y + height);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user