PgSetStrokeWidth(2)

I get strange border effects when setting
stroke width to 2 (or greater) for my polygon
in Photon 1.14

Following code shows the strange effect.

#include <Ph.h>

PhPoint_t p[] = {
{75, 68}, {64, 54}, {65, 53}, {71, 49}, {72, 48}, {78, 43}, {79, 43},
{88, 55}, {100, 71}, {130, 111}, {140, 124}, {160, 150}, {183, 181},
{199, 202}, {204, 209}, {206, 211}, {205, 212}, {199, 216}, {198,
217},
{192, 222}, {191, 222}, {133, 145}, {75, 68},
};

main()
{
PhPoint_t ul = {0, 0};

PhAttach(NULL, NULL);

PgSetRegion(1);

PgSetStrokeColor(Pg_WHITE);

PgSetStrokeWidth(1);
PgDrawPolygon(p, sizeof(p)/sizeof(p[0]), &ul, Pg_DRAW_STROKE); //
looks OK

ul.x += 50;

PgSetStrokeWidth(2);
PgDrawPolygon(p, sizeof(p)/sizeof(p[0]), &ul, Pg_DRAW_STROKE); //
looks strange

PgFlush();
}


Can anyone explain whats going on ?

thanks in advance


Per Åkesson
Carmenta AB
SWEDEN