~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make peg removal accessible from the keyboard.
[sgt/puzzles]
/
windows.c
diff --git
a/windows.c
b/windows.c
index
0cf8148
..
ae93983
100644
(file)
--- a/
windows.c
+++ b/
windows.c
@@
-33,7
+33,7
@@
#define HELP_FILE_NAME "puzzles.hlp"
#define HELP_CNT_NAME "puzzles.cnt"
#define HELP_FILE_NAME "puzzles.hlp"
#define HELP_CNT_NAME "puzzles.cnt"
-#ifdef DEBUG
+#ifdef DEBUG
GING
static FILE *debug_fp = NULL;
static HANDLE debug_hdl = INVALID_HANDLE_VALUE;
static int debug_got_console = 0;
static FILE *debug_fp = NULL;
static HANDLE debug_hdl = INVALID_HANDLE_VALUE;
static int debug_got_console = 0;
@@
-342,10
+342,11
@@
void draw_circle(frontend *fe, int cx, int cy, int radius,
SelectObject(fe->hdc_bm, oldpen);
} else {
HPEN oldpen = SelectObject(fe->hdc_bm, fe->pens[colour]);
SelectObject(fe->hdc_bm, oldpen);
} else {
HPEN oldpen = SelectObject(fe->hdc_bm, fe->pens[colour]);
- MoveToEx(fe->hdc_bm, cx + radius, cy, NULL);
- AngleArc(fe->hdc_bm, cx, cy, radius, 0.0F, 360.0F);
+ Arc(fe->hdc_bm, cx - radius, cy - radius,
+ cx + radius + 1, cy + radius + 1,
+ cx - radius, cy, cx - radius, cy);
SelectObject(fe->hdc_bm, oldpen);
SelectObject(fe->hdc_bm, oldpen);
- }
+ }
}
void draw_polygon(frontend *fe, int *coords, int npoints,
}
void draw_polygon(frontend *fe, int *coords, int npoints,