21 void oledc_fillRoundRect(
int x,
int y,
int w,
int h,
int r,
unsigned int color)
25 if(r >= sMin/2) r = sMin/2 - 1;
27 while(oledc_screenLock());
28 oledc_screenLockSet();
31 oledc_fillRectPrimative(
x + r, y, w - 2 * r, h, color);
34 oledc_fillCircleHelper(
x - r + w - 1, y + r, r, 1, h - 2 * r - 1, color);
35 oledc_fillCircleHelper(
x + r, y + r, r, 2, h - 2 * r - 1, color);
37 oledc_screenLockClr();