Mercurial > sdl-ios-xcode
comparison src/video/win32/SDL_gdirender.c @ 1899:6a11e61bf805
debug cleanup
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 12 Jul 2006 08:09:57 +0000 |
parents | f89e49e51e89 |
children | 5c6bdbf3aadf |
comparison
equal
deleted
inserted
replaced
1898:f89e49e51e89 | 1899:6a11e61bf805 |
---|---|
552 Uint32 color) | 552 Uint32 color) |
553 { | 553 { |
554 SDL_GDI_RenderData *data = (SDL_GDI_RenderData *) renderer->driverdata; | 554 SDL_GDI_RenderData *data = (SDL_GDI_RenderData *) renderer->driverdata; |
555 Uint8 r, g, b; | 555 Uint8 r, g, b; |
556 RECT rc; | 556 RECT rc; |
557 static HBRUSH brush; | 557 HBRUSH brush; |
558 int status; | 558 int status; |
559 | 559 |
560 if (data->makedirty) { | 560 if (data->makedirty) { |
561 SDL_AddDirtyRect(&data->dirty, rect); | 561 SDL_AddDirtyRect(&data->dirty, rect); |
562 } | 562 } |
736 SDL_GDI_RenderData *data = (SDL_GDI_RenderData *) renderer->driverdata; | 736 SDL_GDI_RenderData *data = (SDL_GDI_RenderData *) renderer->driverdata; |
737 SDL_DirtyRect *dirty; | 737 SDL_DirtyRect *dirty; |
738 int new_hbm; | 738 int new_hbm; |
739 | 739 |
740 /* Send the data to the display */ | 740 /* Send the data to the display */ |
741 /* | |
742 if (!(renderer->info.flags & SDL_Renderer_SingleBuffer)) { | 741 if (!(renderer->info.flags & SDL_Renderer_SingleBuffer)) { |
743 for (dirty = data->dirty.list; dirty; dirty = dirty->next) { | 742 for (dirty = data->dirty.list; dirty; dirty = dirty->next) { |
744 const SDL_Rect *rect = &dirty->rect; | 743 const SDL_Rect *rect = &dirty->rect; |
745 BitBlt(data->window_hdc, rect->x, rect->y, rect->w, rect->h, | 744 BitBlt(data->window_hdc, rect->x, rect->y, rect->w, rect->h, |
746 data->render_hdc, rect->x, rect->y, SRCCOPY); | 745 data->render_hdc, rect->x, rect->y, SRCCOPY); |
747 } | 746 } |
748 SDL_ClearDirtyRects(&data->dirty); | 747 SDL_ClearDirtyRects(&data->dirty); |
749 } | 748 } |
750 */ | |
751 BitBlt(data->window_hdc, 0, 0, 640, 480, data->render_hdc, 0, 0, SRCCOPY); | |
752 | 749 |
753 /* Update the flipping chain, if any */ | 750 /* Update the flipping chain, if any */ |
754 if (renderer->info.flags & SDL_Renderer_PresentFlip2) { | 751 if (renderer->info.flags & SDL_Renderer_PresentFlip2) { |
755 data->current_hbm = (data->current_hbm + 1) % 2; | 752 data->current_hbm = (data->current_hbm + 1) % 2; |
756 SelectObject(data->render_hdc, data->hbm[data->current_hbm]); | 753 SelectObject(data->render_hdc, data->hbm[data->current_hbm]); |