Mercurial > sdl-ios-xcode
comparison test/testsprite2.c @ 4598:66e13a224bd6
Major changes to drawing. Reverted back to core X11 functions due to regressions.
author | Sunny Sachanandani <sunnysachanandani@gmail.com> |
---|---|
date | Sun, 18 Jul 2010 18:27:38 +0530 |
parents | dc26c37ad70e |
children | cd2523c69d3e |
comparison
equal
deleted
inserted
replaced
4597:95be206b3cb7 | 4598:66e13a224bd6 |
---|---|
142 SDL_RenderClear(); | 142 SDL_RenderClear(); |
143 | 143 |
144 /* Test points */ | 144 /* Test points */ |
145 SDL_SetRenderDrawColor(0xFF, 0x00, 0x00, 0xFF); | 145 SDL_SetRenderDrawColor(0xFF, 0x00, 0x00, 0xFF); |
146 SDL_RenderDrawPoint(0, 0); | 146 SDL_RenderDrawPoint(0, 0); |
147 SDL_RenderDrawPoint(window_w-1, 0); | 147 SDL_RenderDrawPoint(window_w/2-1, window_h/2-1); |
148 SDL_RenderDrawPoint(0, window_h-1); | 148 SDL_RenderDrawPoint(window_w/2-1, window_h/2-1); |
149 SDL_RenderDrawPoint(window_w-1, window_h-1); | 149 SDL_RenderDrawPoint(window_w-1, window_h-1); |
150 | 150 |
151 /* Test horizontal and vertical lines */ | 151 /* Test horizontal and vertical lines */ |
152 SDL_SetRenderDrawColor(0x00, 0xFF, 0x00, 0xFF); | 152 SDL_SetRenderDrawColor(0x00, 0xFF, 0x00, 0xFF); |
153 SDL_RenderDrawLine(1, 0, window_w-2, 0); | 153 SDL_RenderDrawLine(1, 0, window_w-2, 0); |