Mercurial > dwindows
comparison os2/dw.c @ 1286:6a5df80cfb43
Ug fix for editor adding tabs. Wish I could change the default in this thing.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 31 Oct 2011 08:57:03 +0000 |
parents | 2c04a56eaf63 |
children | d2c4deea6bf6 |
comparison
equal
deleted
inserted
replaced
1285:2c04a56eaf63 | 1286:6a5df80cfb43 |
---|---|
8706 | 8706 |
8707 /* Handle full circle/ellipse */ | 8707 /* Handle full circle/ellipse */ |
8708 if(flags & DW_DRAW_FULL) | 8708 if(flags & DW_DRAW_FULL) |
8709 { | 8709 { |
8710 pts[0].x = xorigin; | 8710 pts[0].x = xorigin; |
8711 pts[0].y = thisheight - yorigin - 1; | 8711 pts[0].y = thisheight - yorigin - 1; |
8712 GpiMove(hps, pts); | 8712 GpiMove(hps, pts); |
8713 ap.lP = (x2 - x1)/2; | 8713 ap.lP = (x2 - x1)/2; |
8714 ap.lQ = (y2 - y1)/2; | 8714 ap.lQ = (y2 - y1)/2; |
8715 /* Setup the arc info on the presentation space */ | 8715 /* Setup the arc info on the presentation space */ |
8716 GpiSetArcParams(hps, &ap); | 8716 GpiSetArcParams(hps, &ap); |
8717 GpiFullArc(hps, DRO_OUTLINE, MAKEFIXED(1, 1)); | 8717 GpiFullArc(hps, DRO_OUTLINE, MAKEFIXED(1, 1)); |
8718 } | 8718 } |
8719 else | 8719 else |
8720 { | 8720 { |
8721 /* Setup the default arc info on the presentation space */ | 8721 /* Setup the default arc info on the presentation space */ |
8722 GpiSetArcParams(hps, &ap); | 8722 GpiSetArcParams(hps, &ap); |
8723 pts[0].x = x1; | 8723 pts[0].x = x1; |
8724 pts[0].y = thisheight - y1 - 1; | 8724 pts[0].y = thisheight - y1 - 1; |
8725 /* Move to the initial position */ | 8725 /* Move to the initial position */ |
8726 GpiMove(hps, pts); | 8726 GpiMove(hps, pts); |
8727 /* Calculate the midpoint */ | 8727 /* Calculate the midpoint */ |