1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 12:58:08 +01:00

*** empty log message ***

This commit is contained in:
kojima
2000-02-16 18:22:46 +00:00
parent 23c40b0540
commit a0ebed9cb2
6 changed files with 195 additions and 41 deletions

View File

@@ -30,7 +30,7 @@ print_help()
puts(" -v <vis-id> visual id to use");
}
#include "bench.h"
int main(int argc, char **argv)
{
RContextAttributes attr;
@@ -190,9 +190,15 @@ int main(int argc, char **argv)
printf("average time per convertion %f sec\n", rt/i);
printf("------------------------------------------\n");
#else
cycle_bench(1);
imgh = RRenderMultiGradient(250, 250, colors, RGRD_HORIZONTAL);
cycle_bench(0);
cycle_bench(1);
imgv = RRenderMultiGradient(250, 250, colors, RGRD_VERTICAL);
cycle_bench(0);
cycle_bench(1);
imgd = RRenderMultiGradient(250, 250, colors, RGRD_DIAGONAL);
cycle_bench(0);
RConvertImage(ctx, imgh, &pix);
XCopyArea(dpy, pix, win, ctx->copy_gc, 0, 0, 250, 250, 0, 0);