Commit Graph

  • 00e4d79db1 js: Enable STRICT_JS in Emscripten Ben Harris 2022-11-10 00:40:52 +00:00
  • 2115799094 js: Add various missing variable declarations Ben Harris 2022-11-10 00:13:59 +00:00
  • f7957d3aa0 js: Reinstate a missing variable declaration Ben Harris 2022-11-09 23:44:26 +00:00
  • 7982002a64 js: Switch to window.requestAnimationFrame() for timing Ben Harris 2022-10-26 10:05:04 +01:00
  • c5a2446fae js: Cancel UI events when the mid end says they've been handled Ben Harris 2022-11-05 17:15:52 +00:00
  • 4a37f7cf78 Add a way for midend_process_key() to report whether it handled a keypress Ben Harris 2022-11-05 16:05:39 +00:00
  • 4fdcc54975 js: Make SoftRight act as CURSOR_SELECT2 as well Ben Harris 2022-11-05 17:39:42 +00:00
  • ee5b02b0ca js: Map the "SoftLeft" key to CURSOR_SELECT2 Ben Harris 2022-11-02 22:22:46 +00:00
  • ad9ee5a524 js: Move much of the handling of device pixel ratios to the mid-end Ben Harris 2022-11-07 23:02:06 +00:00
  • e45cd43aaa Teach the mid-end about device pixel ratios Ben Harris 2022-11-07 21:42:38 +00:00
  • fba22f04d6 js: Make update_pixel_ratio() more robust Ben Harris 2022-11-07 23:05:56 +00:00
  • 289342ec33 js: Adjust z-indices of sub-menus and resize handle Ben Harris 2022-11-01 09:23:41 +00:00
  • 06f6e878a0 js: Tolerate the non-existence of some HTML elements Ben Harris 2022-10-29 11:58:37 +01:00
  • ea4ba47662 Loopy: adjust clip rectangle for new line thickness. Simon Tatham 2022-10-28 22:35:22 +01:00
  • ebb079eca0 Loopy: make line thicknesses scale with the canvas. Simon Tatham 2022-10-28 21:32:14 +01:00
  • 1e8169ea94 js: Take device pixel ratio into account when setting default size Ben Harris 2022-10-27 22:37:31 +01:00
  • fa58dd85b7 js: Distinguish manual resizes from device pixel ratio changes Ben Harris 2022-10-27 14:30:23 +01:00
  • 9783bbfbc0 js: Split setting nominal and actual canvas size Ben Harris 2022-10-27 11:27:22 +01:00
  • 532d662722 js: Very bad attempt at making puzzles change size when zooming Ben Harris 2022-10-27 10:12:54 +01:00
  • 5af0cd4ac1 js: Add a CMake variable to control whether Emscripten emits WASM Ben Harris 2022-10-26 22:49:36 +01:00
  • 6f5debe417 js: Make update_pixel_ratio more backward-compatible Ben Harris 2022-10-26 21:17:21 +01:00
  • 7354790ca4 js: Use String.replace() in place of .replaceAll() Ben Harris 2022-10-26 01:32:52 +01:00
  • 5fae5ca0db js: Be more subtle about cancelling keydown events Ben Harris 2022-10-25 20:38:37 +01:00
  • e6faebeb9a js: Remove keypress handler Ben Harris 2022-10-25 10:24:15 +01:00
  • 43c89dd5e1 js: Add a comment explaining the two halves of the key-matching code Ben Harris 2022-10-25 00:50:47 +01:00
  • d94d671bf9 js: Handle KeyboardEvent.key == "Spacebar" Ben Harris 2022-10-25 00:48:58 +01:00
  • 35d382019f js: Recognise KeyboardEvent.key == "Escape" Ben Harris 2022-10-24 23:33:09 +01:00
  • f5ac13c847 js: Add mapping for UI_REDO based on KeyboardEvent.key Ben Harris 2022-10-24 23:19:56 +01:00
  • 768ef770a3 js: Use KeyboardEvent.key for ASCII keystrokes Ben Harris 2022-10-24 23:06:12 +01:00
  • 0db5fb525b js: Remove the charCode argument from key() Ben Harris 2022-10-24 22:37:30 +01:00
  • 9698732d65 js: Add modern "key" values for Delete and arrow keys Ben Harris 2022-10-24 22:22:33 +01:00
  • 322a439d80 js: Use KeyboardEvent.keyCode and .char only as fallbacks Ben Harris 2022-10-24 22:07:12 +01:00
  • c1059c07fb js: Remove braces from big else-if chain in keyboard handler Ben Harris 2022-10-24 21:57:53 +01:00
  • a62217e9b4 js: Use less-modern syntax in update_pixel_ratio Ben Harris 2022-10-23 11:15:31 +01:00
  • 0254a163ff js: Make resizing of puzzles work properly again Ben Harris 2022-10-22 18:50:34 +01:00
  • 989c6defb0 js: Pay attention to changes in device pixel ratio Ben Harris 2022-10-22 18:40:01 +01:00
  • 24ce6260d5 js: Pay attention to the device pixel ratio Ben Harris 2022-10-22 13:34:36 +01:00
  • 9be9a12476 js: Move some styling from style attributes to stylesheet Ben Harris 2022-10-22 13:33:16 +01:00
  • 27f0dafcf0 js: Map mouse co-ordinates correctly even when CSS scales our canvas Ben Harris 2022-10-06 10:11:32 +01:00
  • 4feb5fdf0c Update Nikoli links and remove Flash warnings Ben Harris 2022-10-22 01:43:51 +01:00
  • 0197ca4359 js: Percent-encode game IDs in URLs and decode them again on input Ben Harris 2022-10-21 09:55:35 +01:00
  • 373dadacc0 Build fix: take declarations out of for loops. Simon Tatham 2022-10-21 07:52:14 +01:00
  • a46f0c2ba9 js: Read save files as text rather than binary strings Ben Harris 2022-10-13 10:29:29 +01:00
  • 47905e9547 Revert "WASM: move save file encoding from JS into C." Ben Harris 2022-10-21 00:25:34 +01:00
  • 12491021d0 Update comment on parameter string formats in documentation Ben Harris 2022-10-19 09:04:55 +01:00
  • 0ce67c7c3f Document the asserted printable ASCII nature of many strings Ben Harris 2022-10-19 09:04:06 +01:00
  • 7f4d038258 Assert that everything written to a save file is printable ASCII Ben Harris 2022-10-17 00:59:18 +01:00
  • 304796f9f1 Hex-encode non-ASCII random seeds in save files Ben Harris 2022-10-17 00:56:37 +01:00
  • 9f2eef8762 Add assertions that game descriptions consist only of printable ASCII. Ben Harris 2022-10-15 21:25:08 +01:00
  • e29d8a3eca Add an assertion to check the format of encoded parameters Ben Harris 2022-10-15 20:46:28 +01:00
  • dbbe9d3750 js: Make the dialogue box heading actually be an <h2> Ben Harris 2022-10-18 01:00:49 +01:00
  • 5c180cfa6f js: When making a hidden element visible, just remove "display: none" Ben Harris 2022-10-17 23:11:48 +01:00
  • 3c3d8aff22 js: Remove unnecessary setting of status bar size Ben Harris 2022-10-17 23:04:22 +01:00
  • 49849e40ec js: Move dialogue-box sizing and positioning from JavaScript to CSS Ben Harris 2022-10-17 22:34:54 +01:00
  • c90d64f243 js: Move most style settings from JavaScript to CSS Ben Harris 2022-10-17 22:04:16 +01:00
  • 1bab1d1d2a Correct and enable the range check on statepos when loading Ben Harris 2022-10-16 19:14:24 +01:00
  • 02e5e93046 Add more validation to midend deserialisation routine Ben Harris 2022-10-16 18:31:54 +01:00
  • 879a6922b0 js: Update permalinks and undo/redo buttons when loading Ben Harris 2022-10-12 21:30:19 +01:00
  • f11e93e3bd js: Update comment on possible future enhancements Ben Harris 2022-10-13 10:07:05 +01:00
  • a11a5726b2 Add a missing "const" to js_draw_poly and js_canvas_draw_poly Ben Harris 2022-10-13 00:13:00 +01:00
  • 85d2a7da62 Hide some words in top-level menu items on small viewports Ben Harris 2022-10-07 11:15:32 +01:00
  • e98ede7a72 Make JavaScript game controls work better in small viewports Ben Harris 2022-10-05 11:10:44 +01:00
  • 27dd36e3e6 Enable Apple Silicon in the MacOS builds. Simon Tatham 2022-09-12 11:01:40 +01:00
  • 9c13279938 unix, gtk: Install and use HTML help Ben Hutchings 2022-07-31 04:11:08 +02:00
  • 8399cff6a3 Re-fix the GTK dark theme check. Simon Tatham 2022-08-01 17:23:12 +01:00
  • 89391ba66a Update the developer documentation. Simon Tatham 2022-07-31 13:48:42 +01:00
  • b34f8b1ee3 Style cleanups from the previous fixes. Simon Tatham 2022-07-31 09:00:21 +01:00
  • f0f974055b Makefile.doc: Update file list in the clean rule Ben Hutchings 2022-07-31 03:42:50 +02:00
  • e13ad1a180 gtk: Adjust to reordering of XPM icons Ben Hutchings 2022-07-31 01:42:37 +02:00
  • 3d0c734e43 gtk: Do not override window background colour when using a dark theme Ben Hutchings 2022-02-13 22:23:31 +01:00
  • 4c1e47b272 Bridges: Fix off-by-one in WITHIN() Ben Hutchings 2019-08-17 17:36:51 +01:00
  • cd338a1a35 Unruly: Fix memory leak in dup_game() Ben Hutchings 2019-08-17 17:33:54 +01:00
  • 0dc46506ca Towers: Fix indentation of some solver code Ben Hutchings 2016-06-30 14:43:16 +02:00
  • 49dbf1f60d Pearl: Require width or height to be at least 6 for Tricky Ben Hutchings 2018-08-10 07:00:06 +01:00
  • 387d323dd8 Mines: fix a typo in a comment. Simon Tatham 2022-06-12 08:00:08 +01:00
  • c43a34fbfe Pearl: reorder helper functions. Simon Tatham 2022-01-27 18:48:47 +00:00
  • c44e91567c Pearl: permit drawing a whole loop in one drag. Simon Tatham 2022-01-27 18:32:33 +00:00
  • 07029044b7 Mosaic: fix uninitialised field in dup_game(). Simon Tatham 2022-01-27 18:29:21 +00:00
  • 534384e5de Mosaic: fix inconsistently drawn keyboard cursor. Simon Tatham 2022-01-27 18:25:14 +00:00
  • 229d062d6c Windows: reinstate SetWindowPos in check_window_size. Simon Tatham 2022-01-08 14:43:01 +00:00
  • cb6cead7a9 windows.c: fix some mis-indented pieces of code. Simon Tatham 2022-01-08 14:27:07 +00:00
  • efbb2e3a31 Mosaic: fix encoding of aggressiveness in game params. Simon Tatham 2022-01-08 14:24:20 +00:00
  • 1600818848 Try to fix flakiness in the NestedVM build. Simon Tatham 2022-01-06 09:03:28 +00:00
  • b56c994b72 Pattern: fix a compile warning about memset bounds. Simon Tatham 2021-12-11 13:56:12 +00:00
  • d399a6b230 tree234: avoid an uninitialised-variable warning. Simon Tatham 2021-12-11 11:32:25 +00:00
  • bb1432c0ad gtk.c: squelch uninitialised-variable warning. Simon Tatham 2021-12-11 11:28:36 +00:00
  • 57fbcd2b29 malloc.c: check allocation sizes against PTRDIFF_MAX. Simon Tatham 2021-12-11 11:13:00 +00:00
  • 5c5c607fdb malloc.c: fix copy-pasted comment from the Dawn Of Time. Simon Tatham 2021-12-11 11:12:06 +00:00
  • 9339cff533 Palisade: explicitly use 'signed char' for clues. Simon Tatham 2021-12-11 11:09:29 +00:00
  • 3e00615845 Map: add missing sresize in new_game_desc(). Simon Tatham 2021-12-11 11:03:20 +00:00
  • 640f9235c7 Pearl: document game options. Simon Tatham 2021-10-30 10:56:15 +01:00
  • ad1c6ade2a Galaxies: store game solution in the aux string. Simon Tatham 2021-10-21 20:40:36 +01:00
  • 49d28f2204 Tents: fix bias in tent placement. Simon Tatham 2021-10-21 20:39:09 +01:00
  • 42cbd7688a Add missing documentation of 'int dir' parameters. Simon Tatham 2021-09-13 11:09:54 +01:00
  • 88358f0643 Add 'const' to the draw_polygon coords array parameter. Simon Tatham 2021-09-13 11:04:59 +01:00
  • d204978391 Tents: reinstate bottom and right grid borders. Simon Tatham 2021-09-10 08:55:01 +01:00
  • 6691ad180c Fix benchmark.sh for the new cmake world. Simon Tatham 2021-09-06 10:57:40 +01:00
  • c108271b44 Unruly: new 'Trivial' difficulty level. Simon Tatham 2021-09-06 10:51:01 +01:00
  • 55813ea2fc Black Box: fix highlights in top left grid corner. Simon Tatham 2021-08-28 10:40:40 +01:00
  • 8f3413c31f galaxieseditor: make 'copy to clipboard' give the game id. Simon Tatham 2021-05-25 10:44:08 +01:00