summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlibdlo <libdlo@displaylink.com>2009-05-14 09:10:05 -0700
committerlibdlo <libdlo@displaylink.com>2009-05-14 09:10:05 -0700
commitde50caa4fef98d53a65ed5523c0d92ee94e45cc1 (patch)
tree636e8489f58dcabeb8b5c6830dc24f8a7d22e130
parent30c54c68fd0264fa2f58436c1f0fcb6bc660078b (diff)
For DL logo test, show viewport before rendering so it's visible
-rw-r--r--test/test1.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/test1.c b/test/test1.c
index fee70d2..87400d0 100644
--- a/test/test1.c
+++ b/test/test1.c
@@ -833,15 +833,6 @@ static dlo_retcode_t bmp_clip_test(const dlo_dev_t uid)
fbuf = bmp_to_fbuf(bmp);
NERR_GOTO(fbuf);
- /* Plot lots of bitmaps into the second screen bank */
- for (i = 0; i < 399; i++)
- {
- flags.v_flip = rand() % 2;
- dot.x = -fbuf->width + (rand() % (view[1].width + fbuf->width));
- dot.y = -fbuf->height + (rand() % (view[1].height + fbuf->height));
- ERR_GOTO(dlo_copy_host_bmp(uid, flags, fbuf, &view[1], &dot));
- }
-
/* Switch to middle bank */
wait_ms(now(), 2000);
mode.view.width = view[1].width;
@@ -851,6 +842,15 @@ static dlo_retcode_t bmp_clip_test(const dlo_dev_t uid)
mode.refresh = 0;
ERR_GOTO(dlo_set_mode(uid, &mode));
wait_ms(now(), 1000);
+
+ /* Plot lots of bitmaps into the second screen bank */
+ for (i = 0; i < 399; i++)
+ {
+ flags.v_flip = rand() % 2;
+ dot.x = -fbuf->width + (rand() % (view[1].width + fbuf->width));
+ dot.y = -fbuf->height + (rand() % (view[1].height + fbuf->height));
+ ERR_GOTO(dlo_copy_host_bmp(uid, flags, fbuf, &view[1], &dot));
+ }
/* Switch to third bank */
wait_ms(now(), 2000);