diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-02-10 18:08:05 -0500 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2008-02-14 19:40:02 +0100 |
| commit | 9c729986844a65545f7736d053359ad24d2df120 (patch) | |
| tree | 7acd7c89edc1fb2ba1b2d76be604f24dc596c3f2 /render/test.c | |
| parent | 3611c8210cc632c2a21c67ccbf40857342c10371 (diff) | |
a small optimization for the vertical gradients, and use the same log(n) strategy to use less memcpy's for filling out the horizontal gradients
Diffstat (limited to 'render/test.c')
| -rw-r--r-- | render/test.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/render/test.c b/render/test.c index 05416a3f..36c962da 100644 --- a/render/test.c +++ b/render/test.c @@ -68,7 +68,7 @@ gint main() inst = RrInstanceNew(ob_display, ob_screen); look = RrAppearanceNew(inst, 0); - look->surface.grad = RR_SURFACE_SPLIT_VERTICAL; + look->surface.grad = RR_SURFACE_MIRROR_HORIZONTAL; look->surface.secondary = RrColorParse(inst, "Yellow"); look->surface.split_secondary = RrColorParse(inst, "Red"); look->surface.split_primary = RrColorParse(inst, "Green"); @@ -79,6 +79,18 @@ gint main() return 0; } +#if BIGTEST + int i; + look->surface.pixel_data = g_new(RrPixel32, w*h); + for (i = 0; i < 10000; ++i) { + printf("\r%d", i); + fflush(stdout); + RrRender(look, w, h); + } + exit (0); +#endif + + RrPaint(look, win, w, h); done = 0; while (!done) { |
