~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Document Unix command-line options.
[sgt/puzzles]
/
osx.m
diff --git
a/osx.m
b/osx.m
index
101dfe4
..
bbe47f3
100644
(file)
--- a/
osx.m
+++ b/
osx.m
@@
-540,7
+540,7
@@
struct frontend {
/*
* Create the status bar, which will just be an NSTextField.
*/
/*
* Create the status bar, which will just be an NSTextField.
*/
- if (
ourgame->wants_statusbar(
)) {
+ if (
midend_wants_statusbar(me
)) {
status = [[NSTextField alloc] initWithFrame:NSMakeRect(0,0,100,50)];
[status setEditable:NO];
[status setSelectable:NO];
status = [[NSTextField alloc] initWithFrame:NSMakeRect(0,0,100,50)];
[status setEditable:NO];
[status setSelectable:NO];
@@
-1341,6
+1341,8
@@
static void osx_draw_text(void *handle, int x, int y, int fonttype,
point.x -= size.width / 2;
if (align & ALIGN_VCENTRE)
point.y -= size.height / 2;
point.x -= size.width / 2;
if (align & ALIGN_VCENTRE)
point.y -= size.height / 2;
+ else
+ point.y -= size.height;
[string drawAtPoint:point withAttributes:attr];
}
[string drawAtPoint:point withAttributes:attr];
}