TempleOSCDV4.08.ISO
This commit is contained in:
1 parent
b632ab9a4f
commit
2d56cda5f3
258 files changed
+6973
-5476
No files matched your search
+12
-1
@@ -20,6 +20,17 @@ U0 GrSetUpTables()
|
||||
|
||||
for (i=0;i<GR_NUM_PEN_BRUSHES;i++) {
|
||||
k=i+1;
|
||||
|
||||
rr=k*k;
|
||||
for (y=1;y<k;y++)
|
||||
for (x=1;x<k;x++)
|
||||
if (SqrI64(y*2-k)+SqrI64(x*2-k)<rr) {
|
||||
if (x-1-i>>1<gr.circle_lo[i][i-y])
|
||||
gr.circle_lo[i][i-y]=x-1-i>>1;
|
||||
if (x-1-i>>1>gr.circle_hi[i][i-y])
|
||||
gr.circle_hi[i][i-y]=x-1-i>>1;
|
||||
}
|
||||
|
||||
dc=DCNew(i,i);
|
||||
gr.pen_brushes[i]=dc;
|
||||
dc->color=COLOR_MONO;
|
||||
@@ -57,7 +68,7 @@ U0 GrSetUpTables()
|
||||
GrPlot0(dc,x-1,y-1);
|
||||
}
|
||||
if (!Bt(&sys_run_level,RLf_VGA)) { //if text mode
|
||||
MemSet(VGAM_TEXT,0,TEXT_ROWS*TEXT_COLS*sizeof(U16));
|
||||
MemSet(text.vga_text_alias,0,TEXT_ROWS*TEXT_COLS*sizeof(U16));
|
||||
MemSet(gr.vga_text_cache,0,TEXT_ROWS*TEXT_COLS*sizeof(U16));
|
||||
} else {
|
||||
OutU8(VGAP_IDX,VGAR_MAP_MASK);
|
||||
|
||||
Reference in new issue
Block a user