diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-02-28 10:58:56 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-02-28 11:12:13 +0100 |
commit | d79398a1d5cff9286e1d71d21c51b5146f5c8c31 (patch) | |
tree | dd1c860e40ec90cafa81b2292f62ab87b6b50958 | |
parent | 4fd2eecb8b21f59b986b9738fd208bcd6f668448 (diff) | |
download | openttd-d79398a1d5cff9286e1d71d21c51b5146f5c8c31.tar.xz |
Fix #8763: [OpenGL] Cursor sprite origin can be negative.
-rw-r--r-- | src/video/opengl.cpp | 2 | ||||
-rw-r--r-- | src/video/opengl.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/video/opengl.cpp b/src/video/opengl.cpp index ebe4bb8d7..60f2a1bcd 100644 --- a/src/video/opengl.cpp +++ b/src/video/opengl.cpp @@ -1217,7 +1217,7 @@ void OpenGLBackend::ReleaseAnimBuffer(const Rect &update_rect) * @param y Y position of the sprite. * @param zoom Zoom level to use. */ -void OpenGLBackend::RenderOglSprite(OpenGLSprite *gl_sprite, PaletteID pal, uint x, uint y, ZoomLevel zoom) +void OpenGLBackend::RenderOglSprite(OpenGLSprite *gl_sprite, PaletteID pal, int x, int y, ZoomLevel zoom) { /* Set textures. */ bool rgb = gl_sprite->BindTextures(); diff --git a/src/video/opengl.h b/src/video/opengl.h index 373345063..b66d585e5 100644 --- a/src/video/opengl.h +++ b/src/video/opengl.h @@ -70,7 +70,7 @@ private: const char *Init(); bool InitShaders(); - void RenderOglSprite(OpenGLSprite *gl_sprite, PaletteID pal, uint x, uint y, ZoomLevel zoom); + void RenderOglSprite(OpenGLSprite *gl_sprite, PaletteID pal, int x, int y, ZoomLevel zoom); public: /** Get singleton instance of this class. */ |