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;