~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Write a comment outlining a design for a rewritten faster solver.
[sgt/puzzles]
/
osx.m
diff --git
a/osx.m
b/osx.m
index
fdcef1e
..
b59999d
100644
(file)
--- a/
osx.m
+++ b/
osx.m
@@
-80,6
+80,7
@@
#define COMBINED /* we put all the puzzles in one binary in this port */
#include <ctype.h>
#define COMBINED /* we put all the puzzles in one binary in this port */
#include <ctype.h>
+#include <time.h>
#include <sys/time.h>
#import <Cocoa/Cocoa.h>
#include "puzzles.h"
#include <sys/time.h>
#import <Cocoa/Cocoa.h>
#include "puzzles.h"
@@
-1341,6
+1342,8
@@
static void osx_draw_line(void *handle, int x1, int y1, int x2, int y2, int colo
[path moveToPoint:p1];
[path lineToPoint:p2];
[path stroke];
[path moveToPoint:p1];
[path lineToPoint:p2];
[path stroke];
+ NSRectFill(NSMakeRect(x1, fe->h-y1-1, 1, 1));
+ NSRectFill(NSMakeRect(x2, fe->h-y2-1, 1, 1));
}
static void osx_draw_rect(void *handle, int x, int y, int w, int h, int colour)
{
}
static void osx_draw_rect(void *handle, int x, int y, int w, int h, int colour)
{