21 void oledc_drawRoundRect(
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_drawLinePrimative(
x + r, y,
x - r + w - 1, y, color);
32 oledc_drawLinePrimative(
x + r, y + h - 1,
x - r + w - 1, y + h - 1, color);
33 oledc_drawLinePrimative(
x, y + r ,
x, y - r + h - 1, color);
34 oledc_drawLinePrimative(
x + w - 1, y + r ,
x + w - 1, y - r + h - 1, color);
37 oledc_drawCircleHelper(
x + r , y + r , r, 1, color);
38 oledc_drawCircleHelper(
x + w - r - 1, y + r , r, 2, color);
39 oledc_drawCircleHelper(
x + w - r - 1, y + h - r - 1, r, 4, color);
40 oledc_drawCircleHelper(
x + r , y + h - r - 1, r, 8, color);
42 oledc_screenLockClr();