From b5d257409cc3ce7d6183fc8a464d4a9938c7cd4b Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 19 Dec 2015 14:54:24 -0500 Subject: [PATCH] Added a green "out of bounds" area to test/page7c.c. For some reason it doesn't show up here... will need to look further. --- test/page7c.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/test/page7c.c b/test/page7c.c index 10da6263..c7a15dad 100644 --- a/test/page7c.c +++ b/test/page7c.c @@ -24,6 +24,20 @@ static void handlerDraw(uiAreaHandler *a, uiArea *area, uiAreaDrawParams *dp) memset(&brush, 0, sizeof (uiDrawBrush)); memset(&sp, 0, sizeof (uiDrawStrokeParams)); + // add some buffering to detect scrolls that aren't on the dot and to see what happens when areas outside the scroll area are drawn + path = uiDrawNewPath(uiDrawFillModeWinding); + uiDrawPathAddRectangle(path, + -50, -50, + areaSize + 50, areaSize + 50); + uiDrawPathEnd(path); + brush.Type = uiDrawBrushTypeSolid; + brush.R = 0; + brush.G = 1; + brush.B = 0; + brush.A = 1; + uiDrawFill(dp->Context, path, &brush); + uiDrawFreePath(path); + path = uiDrawNewPath(uiDrawFillModeWinding); uiDrawPathAddRectangle(path, 0, 0, @@ -31,6 +45,12 @@ static void handlerDraw(uiAreaHandler *a, uiArea *area, uiAreaDrawParams *dp) uiDrawPathEnd(path); brush.Type = uiDrawBrushTypeSolid; brush.R = 1; + brush.G = 1; + brush.B = 1; + brush.A = 1; + uiDrawFill(dp->Context, path, &brush); + brush.Type = uiDrawBrushTypeSolid; + brush.R = 1; brush.G = 0; brush.B = 0; brush.A = 1;