diff options
| author | Choupom <andycootlapin@hotmail.fr> | 2011-06-21 17:56:06 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-06-27 16:32:52 +0200 |
| commit | b17a7be2861b35ba8bdee002af67ced965b68025 (patch) | |
| tree | 0380201005dd207378aef564682220749c812923 /src/engine/client/graphics.h | |
| parent | 66a8000620a79498b286505236f17db555e6e74d (diff) | |
| download | zcatch-b17a7be2861b35ba8bdee002af67ced965b68025.tar.gz zcatch-b17a7be2861b35ba8bdee002af67ced965b68025.zip | |
fixed #2 Too big textures
Diffstat (limited to 'src/engine/client/graphics.h')
| -rw-r--r-- | src/engine/client/graphics.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/client/graphics.h b/src/engine/client/graphics.h index 4367ccfc..95e9769a 100644 --- a/src/engine/client/graphics.h +++ b/src/engine/client/graphics.h @@ -66,7 +66,8 @@ protected: void AddVertices(int Count); void Rotate4(const CPoint &rCenter, CVertex *pPoints); - static unsigned char Sample(int w, int h, const unsigned char *pData, int u, int v, int Offset); + static unsigned char Sample(int w, int h, const unsigned char *pData, int u, int v, int Offset, int ScaleW, int ScaleH, int Bpp); + static unsigned char *Rescale(int Width, int Height, int NewWidth, int NewHeight, int Format, const unsigned char *pData); public: CGraphics_OpenGL(); |