# HG changeset patch # User Matti Hamalainen # Date 1350337193 -10800 # Node ID c3f32de1145804597792d027623870a4b34dc579 # Parent f248defe7484b0d1017ed70a6a46aae481346a65 Constify. diff -r f248defe7484 -r c3f32de11458 dmq3d.c --- a/dmq3d.c Tue Oct 16 00:37:42 2012 +0300 +++ b/dmq3d.c Tue Oct 16 00:39:53 2012 +0300 @@ -103,7 +103,7 @@ } -void dmDraw3DVectorSpriteModel(SDL_Surface *screen, DM3DVectorSpriteModel *model, DMVector *pos, DMMatrix *mat, SDL_Surface *fbmap, Uint32 lcol) +void dmDraw3DVectorSpriteModel(SDL_Surface *screen, const DM3DVectorSpriteModel *model, const DMVector *pos, const DMMatrix *mat, SDL_Surface *fbmap, const Uint32 lcol) { int i; int cx = screen->w / 2, cy = screen->h / 2; diff -r f248defe7484 -r c3f32de11458 dmq3d.h --- a/dmq3d.h Tue Oct 16 00:37:42 2012 +0300 +++ b/dmq3d.h Tue Oct 16 00:39:53 2012 +0300 @@ -59,7 +59,7 @@ int dmRead3DVectorSpriteModel(DMResource *f, DM3DVectorSpriteModel **model); void dmFree3DVectorSpriteModel(DM3DVectorSpriteModel *model); -void dmDraw3DVectorSpriteModel(SDL_Surface *screen, DM3DVectorSpriteModel *model, DMVector *pos, DMMatrix *mat, SDL_Surface *fbmap, Uint32 lcol); +void dmDraw3DVectorSpriteModel(SDL_Surface *screen, const DM3DVectorSpriteModel *model, const DMVector *pos, const DMMatrix *mat, SDL_Surface *fbmap, const Uint32 lcol); #ifdef __cplusplus