Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance.
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404438
This commit is contained in:
parent
d7496843fc
commit
a0e019f786
73 changed files with 854 additions and 1068 deletions
|
@ -19,7 +19,7 @@ static int current_color = 255;
|
|||
static SDL_BlendMode blendMode = SDL_BLENDMODE_NONE;
|
||||
|
||||
void
|
||||
DrawPoints(SDL_WindowID window)
|
||||
DrawPoints(SDL_Window * window)
|
||||
{
|
||||
int i;
|
||||
int x, y;
|
||||
|
@ -64,7 +64,7 @@ DrawPoints(SDL_WindowID window)
|
|||
}
|
||||
|
||||
void
|
||||
DrawLines(SDL_WindowID window)
|
||||
DrawLines(SDL_Window * window)
|
||||
{
|
||||
int i;
|
||||
int x1, y1, x2, y2;
|
||||
|
@ -118,7 +118,7 @@ DrawLines(SDL_WindowID window)
|
|||
}
|
||||
|
||||
void
|
||||
DrawRects(SDL_WindowID window)
|
||||
DrawRects(SDL_Window * window)
|
||||
{
|
||||
int i;
|
||||
SDL_Rect rect;
|
||||
|
@ -249,7 +249,7 @@ main(int argc, char *argv[])
|
|||
case SDL_WINDOWEVENT:
|
||||
switch (event.window.event) {
|
||||
case SDL_WINDOWEVENT_EXPOSED:
|
||||
SDL_SelectRenderer(event.window.windowID);
|
||||
SDL_SelectRenderer(SDL_GetWindowFromID(event.window.windowID));
|
||||
SDL_SetRenderDrawColor(0xA0, 0xA0, 0xA0, 0xFF);
|
||||
SDL_RenderClear();
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue