Mercurial > sdl-ios-xcode
comparison src/video/SDL_renderer_gl.c @ 2275:12ea0fdc0df2
Split out the SDL_rect and SDL_surface functions into their own headers.
Removed unused count from the dirty rect list.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 10 Sep 2007 12:20:02 +0000 |
parents | 75daa0792bd1 |
children | dbc6d1893869 |
comparison
equal
deleted
inserted
replaced
2274:aedfcdeb69b6 | 2275:12ea0fdc0df2 |
---|---|
804 GL_RenderData *data = (GL_RenderData *) renderer->driverdata; | 804 GL_RenderData *data = (GL_RenderData *) renderer->driverdata; |
805 GL_TextureData *texturedata = (GL_TextureData *) texture->driverdata; | 805 GL_TextureData *texturedata = (GL_TextureData *) texture->driverdata; |
806 int minx, miny, maxx, maxy; | 806 int minx, miny, maxx, maxy; |
807 GLfloat minu, maxu, minv, maxv; | 807 GLfloat minu, maxu, minv, maxv; |
808 | 808 |
809 if (texturedata->dirty.count > 0) { | 809 if (texturedata->dirty.list) { |
810 SDL_DirtyRect *dirty; | 810 SDL_DirtyRect *dirty; |
811 void *pixels; | 811 void *pixels; |
812 int bpp = SDL_BYTESPERPIXEL(texture->format); | 812 int bpp = SDL_BYTESPERPIXEL(texture->format); |
813 int pitch = texturedata->pitch; | 813 int pitch = texturedata->pitch; |
814 | 814 |