Noticed before that fonts and bitmaps/pngs converted to
Display All
.c
, had artifacts. Always assumed it was the tool, but drew some lines programmatically and see the same. Here is the code, and in the attached image you can see that even though drawing is same, the second set of lines have more artifacts. Anyone has any suggestion of what could be causing this?C Source Code
- static void test(void) {
- int i, x1, y1, x2, y2;
- GUI_SetColor(GUI_WHITE);
- GUI_SetBkColor(GUI_BLACK);
- GUI_Clear();
- GUI_AA_SetFactor(4);
- x1 = 100;
- y1 = 50;
- for (i = 1; i < 8; i++) {
- GUI_SetPenSize(i);
- GUI_AA_DrawLine(
- x1 + i * 15,
- y1,
- x1 + i * 15,
- y1 + 125);
- }
- x2 = 130;
- y2 = 200;
- for (i = 1; i < 8; i++) {
- GUI_SetPenSize(i);
- GUI_AA_DrawLine(
- x2 + i * 15,
- y2,
- x2 + i * 15,
- y2 + 125);
- }
- }