ref: 113de1e06a4945445ce898388092b174fe40f2ba
parent: b0e0ff38a15e54a4763831d94543dffa1341f417
author: henesy <[email protected]>
date: Fri Mar 11 02:40:50 EST 2022
drawing a line of text!
--- a/screen.c
+++ b/screen.c
@@ -33,24 +33,10 @@
void
moveball()
{
- /*
- static Point bp={6, 6}; // Ball Position
- static double Δi=4, Δj=4;
- // Collision detection
- if(bp.x > p.x - (r*3) || bp.x < -r) Δi = Δi*-1;
- if(bp.y > p.y - (r*3) || bp.y < -r) Δj = Δj*-1;
-
- // Increment ball position
- bp.x = bp.x + Δi;
- bp.y = bp.y + Δj;
-
- draw(screen, rectaddpt(screen->r, bp), ball, nil, ZP);
- */
-
-
- Point out = runestring(
- screen, p, display->black, ZP,
+ Point out;
+ out = runestring(
+ screen, screen->r.min, display->black, ZP,
ourfont, s
);
flushimage(display, 1);
@@ -115,19 +101,10 @@
p = runestringsize(ourfont, s);
- //brush = allocimage(display, Rect(0,0,1,1), CMAP8, 1, DBlack);
out = runestring(
- screen, p, display->black, ZP,
+ screen, screen->r.min, display->black, ZP,
ourfont, s
);
- flushimage(display, 1);
- //sysfatal("%d %d\n", p.x, p.y);
-
- /*
- ball=allocimage(display, (Rectangle){(Point){0,0},(Point){r*4,r*4}},
- screen->chan, 0, DWhite);
- fillellipse(ball, (Point){r*2,r*2}, r, r, brush, ZP);
- */
}