comparison src/video/SDL_video.c @ 3540:3ad09fdbfcb0

Fixed constness in RenderRects() parameter
author Sam Lantinga <slouken@libsdl.org>
date Fri, 11 Dec 2009 09:13:51 +0000
parents 0267b8b1595c
children 7812d3e9564e
comparison
equal deleted inserted replaced
3539:f2846bf19360 3540:3ad09fdbfcb0
2583 /* Check for NULL rect, which means fill entire window */ 2583 /* Check for NULL rect, which means fill entire window */
2584 for (i = 0; i < count; ++i) { 2584 for (i = 0; i < count; ++i) {
2585 if (rects[i] == NULL) { 2585 if (rects[i] == NULL) {
2586 SDL_Window *window; 2586 SDL_Window *window;
2587 SDL_Rect full_rect; 2587 SDL_Rect full_rect;
2588 SDL_Rect *rect; 2588 const SDL_Rect *rect;
2589 2589
2590 window = SDL_GetWindowFromID(renderer->window); 2590 window = SDL_GetWindowFromID(renderer->window);
2591 full_rect.x = 0; 2591 full_rect.x = 0;
2592 full_rect.y = 0; 2592 full_rect.y = 0;
2593 full_rect.w = window->w; 2593 full_rect.w = window->w;