Mercurial > sdl-ios-xcode
comparison src/video/win32/SDL_gdirender.c @ 1901:f1828a500391
Removed libc dependency on Windows again, to fix building with Visual C++ 2005 Express Edition.
Fixed performance problem with testsprite2 on the D3D driver.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 13 Jul 2006 08:13:02 +0000 |
parents | 5c6bdbf3aadf |
children | f132024010be |
comparison
equal
deleted
inserted
replaced
1900:5c6bdbf3aadf | 1901:f1828a500391 |
---|---|
77 | 77 |
78 SDL_RenderDriver SDL_GDI_RenderDriver = { | 78 SDL_RenderDriver SDL_GDI_RenderDriver = { |
79 SDL_GDI_CreateRenderer, | 79 SDL_GDI_CreateRenderer, |
80 { | 80 { |
81 "gdi", | 81 "gdi", |
82 ( //SDL_Renderer_Minimal | | 82 (SDL_Renderer_Minimal | |
83 SDL_Renderer_SingleBuffer | SDL_Renderer_PresentCopy | | 83 SDL_Renderer_SingleBuffer | SDL_Renderer_PresentCopy | |
84 SDL_Renderer_PresentFlip2 | SDL_Renderer_PresentFlip3 | | 84 SDL_Renderer_PresentFlip2 | SDL_Renderer_PresentFlip3 | |
85 SDL_Renderer_PresentDiscard | SDL_Renderer_RenderTarget), | 85 SDL_Renderer_PresentDiscard | SDL_Renderer_RenderTarget), |
86 (SDL_TextureBlendMode_None | SDL_TextureBlendMode_Mask | | 86 (SDL_TextureBlendMode_None | SDL_TextureBlendMode_Mask | |
87 SDL_TextureBlendMode_Blend), | 87 SDL_TextureBlendMode_Blend), |
733 static void | 733 static void |
734 SDL_GDI_RenderPresent(SDL_Renderer * renderer) | 734 SDL_GDI_RenderPresent(SDL_Renderer * renderer) |
735 { | 735 { |
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; | |
739 | 738 |
740 /* Send the data to the display */ | 739 /* Send the data to the display */ |
741 if (!(renderer->info.flags & SDL_Renderer_SingleBuffer)) { | 740 if (!(renderer->info.flags & SDL_Renderer_SingleBuffer)) { |
742 for (dirty = data->dirty.list; dirty; dirty = dirty->next) { | 741 for (dirty = data->dirty.list; dirty; dirty = dirty->next) { |
743 const SDL_Rect *rect = &dirty->rect; | 742 const SDL_Rect *rect = &dirty->rect; |