Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
debug cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 12, 2006
1 parent 998658d commit 83dbae0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/video/win32/SDL_gdirender.c
Expand Up @@ -554,7 +554,7 @@ SDL_GDI_RenderFill(SDL_Renderer * renderer, const SDL_Rect * rect,
SDL_GDI_RenderData *data = (SDL_GDI_RenderData *) renderer->driverdata; SDL_GDI_RenderData *data = (SDL_GDI_RenderData *) renderer->driverdata;
Uint8 r, g, b; Uint8 r, g, b;
RECT rc; RECT rc;
static HBRUSH brush; HBRUSH brush;
int status; int status;


if (data->makedirty) { if (data->makedirty) {
Expand Down Expand Up @@ -738,7 +738,6 @@ SDL_GDI_RenderPresent(SDL_Renderer * renderer)
int new_hbm; int new_hbm;


/* Send the data to the display */ /* Send the data to the display */
/*
if (!(renderer->info.flags & SDL_Renderer_SingleBuffer)) { if (!(renderer->info.flags & SDL_Renderer_SingleBuffer)) {
for (dirty = data->dirty.list; dirty; dirty = dirty->next) { for (dirty = data->dirty.list; dirty; dirty = dirty->next) {
const SDL_Rect *rect = &dirty->rect; const SDL_Rect *rect = &dirty->rect;
Expand All @@ -747,8 +746,6 @@ SDL_GDI_RenderPresent(SDL_Renderer * renderer)
} }
SDL_ClearDirtyRects(&data->dirty); SDL_ClearDirtyRects(&data->dirty);
} }
*/
BitBlt(data->window_hdc, 0, 0, 640, 480, data->render_hdc, 0, 0, SRCCOPY);


/* Update the flipping chain, if any */ /* Update the flipping chain, if any */
if (renderer->info.flags & SDL_Renderer_PresentFlip2) { if (renderer->info.flags & SDL_Renderer_PresentFlip2) {
Expand Down

0 comments on commit 83dbae0

Please sign in to comment.