diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index 4ef5009e..42210b82 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -563,7 +563,7 @@ void Graphics::drawtile( int x, int y, int t ) } -void Graphics::drawtile2( int x, int y, int t, int r, int g, int b ) +void Graphics::drawtile2( int x, int y, int t ) { SDL_Rect rect = { Sint16(x), Sint16(y), tiles_rect.w, tiles_rect.h }; BlitSurfaceStandard(tiles2[t], NULL, backBuffer, &rect); diff --git a/desktop_version/src/Graphics.h b/desktop_version/src/Graphics.h index decb3670..34ba6355 100644 --- a/desktop_version/src/Graphics.h +++ b/desktop_version/src/Graphics.h @@ -161,7 +161,7 @@ public: void drawbackground(int t); void drawtile3( int x, int y, int t, int off ); void drawentcolours( int x, int y, int t); - void drawtile2( int x, int y, int t, int r, int g, int b ); + void drawtile2( int x, int y, int t ); void drawtile( int x, int y, int t ); void drawtowertile( int x, int y, int t ); void drawtowertile3( int x, int y, int t, int off ); diff --git a/desktop_version/src/editor.cpp b/desktop_version/src/editor.cpp index 0a616f14..42a0cc24 100644 --- a/desktop_version/src/editor.cpp +++ b/desktop_version/src/editor.cpp @@ -2312,7 +2312,7 @@ void editorrender() for (int i = 0; i < 40; i++) { temp=ed.contents[i + (ed.levx*40) + ed.vmult[j+(ed.levy*30)]]; - if(temp>0) graphics.drawtile2(i*8,j*8,temp,0,0,0); + if(temp>0) graphics.drawtile2(i*8,j*8,temp); } } } @@ -2751,11 +2751,11 @@ void editorrender() { for(int i=0; i<40; i++) { - graphics.drawtile2(i*8,0-t2,(temp+1200+i)%1200,0,0,0); - graphics.drawtile2(i*8,8-t2,(temp+1200+40+i)%1200,0,0,0); - graphics.drawtile2(i*8,16-t2,(temp+1200+80+i)%1200,0,0,0); - graphics.drawtile2(i*8,24-t2,(temp+1200+120+i)%1200,0,0,0); - graphics.drawtile2(i*8,32-t2,(temp+1200+160+i)%1200,0,0,0); + graphics.drawtile2(i*8,0-t2,(temp+1200+i)%1200); + graphics.drawtile2(i*8,8-t2,(temp+1200+40+i)%1200); + graphics.drawtile2(i*8,16-t2,(temp+1200+80+i)%1200); + graphics.drawtile2(i*8,24-t2,(temp+1200+120+i)%1200); + graphics.drawtile2(i*8,32-t2,(temp+1200+160+i)%1200); } } //Highlight our little block @@ -2776,7 +2776,7 @@ void editorrender() } else { - graphics.drawtile2(45,45-t2,ed.dmtile,0,0,0); + graphics.drawtile2(45,45-t2,ed.dmtile); } } else @@ -2792,7 +2792,7 @@ void editorrender() } else { - graphics.drawtile2(45,12,ed.dmtile,0,0,0); + graphics.drawtile2(45,12,ed.dmtile); } } }