diff options
| author | Simon Tatham <anakin@pobox.com> | 2012-02-17 19:07:31 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2012-02-17 19:07:31 +0000 |
| commit | f38adf6394637d87d6595fd9f4755d193816d7d0 (patch) | |
| tree | 58e3d2983973294fe01cb54e427ee71983efb718 | |
| parent | 21629d7e44bb61a26ae5088f524eef85f96a9aab (diff) | |
| download | puzzles-f38adf6394637d87d6595fd9f4755d193816d7d0.zip puzzles-f38adf6394637d87d6595fd9f4755d193816d7d0.tar.gz puzzles-f38adf6394637d87d6595fd9f4755d193816d7d0.tar.bz2 puzzles-f38adf6394637d87d6595fd9f4755d193816d7d0.tar.xz | |
Tweak a conditional expression in pearl.c to work around a display bug
in the Java build - which turns out to be a JVM bug in OpenJDK 6,
causing the NestedVM rendition of the expression (i==1?3:4) to be
mis-JITed. OpenJDK 7 appears not to do that any more, but this
equivalent (for these purposes) rephrasing should perturb the code
just enough to dodge the problem.
[originally from svn r9408]
| -rw-r--r-- | pearl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2279,7 +2279,7 @@ static void draw_square(drawing *dr, game_drawstate *ds, game_ui *ui, /* Draw a clue, if present */ if (clue != NOCLUE) { int c = (lflags & DS_FLASH) ? COL_FLASH : - (clue == CORNER) ? COL_BLACK : COL_WHITE; + (clue == STRAIGHT) ? COL_WHITE : COL_BLACK; if (lflags & DS_ERROR_CLUE) /* draw a bigger 'error' clue circle. */ draw_circle(dr, cx, cy, TILE_SIZE*3/8, COL_ERROR, COL_ERROR); |