aboutsummaryrefslogtreecommitdiff
path: root/devel.but
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-09-04 12:31:04 +0000
committerSimon Tatham <anakin@pobox.com>2005-09-04 12:31:04 +0000
commit6ee8a4d71e9f4187bf8fd2b47a966d245172d2cc (patch)
tree781cc3ee9b562638c5f3955a60606f510b4887b9 /devel.but
parent41b9855da9e3eca71f9759dccdd04c2d714d9cc6 (diff)
downloadpuzzles-6ee8a4d71e9f4187bf8fd2b47a966d245172d2cc.zip
puzzles-6ee8a4d71e9f4187bf8fd2b47a966d245172d2cc.tar.gz
puzzles-6ee8a4d71e9f4187bf8fd2b47a966d245172d2cc.tar.bz2
puzzles-6ee8a4d71e9f4187bf8fd2b47a966d245172d2cc.tar.xz
Couple of minor updates to restore accuracy.
[originally from svn r6268]
Diffstat (limited to 'devel.but')
-rw-r--r--devel.but17
1 files changed, 8 insertions, 9 deletions
diff --git a/devel.but b/devel.but
index 5017766..ed5c914 100644
--- a/devel.but
+++ b/devel.but
@@ -1551,14 +1551,13 @@ functions. This enables a single front end to switch between
multiple implementations of the drawing API if necessary. For
example, the Windows API supplies a printing mechanism integrated
into the same GDI which deals with drawing in windows, and therefore
-it is likely (although as yet unimplemented in Puzzles) that the
-same API implementation can handle both drawing and printing; but on
-Unix, the most common way for applications to print is by producing
-PostScript output directly, and although it would be \e{possible} to
-write a single (say) \cw{draw_rect()} function which checked a
-global flag to decide whether to do GTK drawing operations or output
-PostScript to a file, it's much nicer to have two separate functions
-and switch between them as appropriate.
+the same API implementation can handle both drawing and printing;
+but on Unix, the most common way for applications to print is by
+producing PostScript output directly, and although it would be
+\e{possible} to write a single (say) \cw{draw_rect()} function which
+checked a global flag to decide whether to do GTK drawing operations
+or output PostScript to a file, it's much nicer to have two separate
+functions and switch between them as appropriate.
When drawing, the puzzle window is indexed by pixel coordinates,
with the top left pixel defined as \cw{(0,0)} and the bottom right
@@ -4051,7 +4050,7 @@ Then the main redraw loop will look something like this
\c if (x == ui->cursor_x && y == ui->cursor_y)
\c value |= CURSOR;
\c if (ds->symbol_at_position[y][x] != value) {
-\c symbol_drawing_subroutine(fe, ds, x, y, value);
+\c symbol_drawing_subroutine(dr, ds, x, y, value);
\c ds->symbol_at_position[y][x] = value;
\c }
\c }