magic/cif
Intubun 6fc7b30386 Save and restore GrDisplayStatus across long operations
CIFGenSubcells() and extSubtree() set GrDisplayStatus =
DISPLAY_IN_PROGRESS while they run a 5-second progress timer, then
unconditionally restore DISPLAY_IDLE on exit. In native builds the
initial state is always IDLE, so this is harmless. In WASM/headless
builds the null display driver sets DISPLAY_SUSPEND at startup, and
forcing IDLE at the end of these long operations destroys the
SUSPEND guard that protects WindUpdate() from running display
callbacks against a non-existent screen.

Save the previous status before overwriting and restore it on exit.
This is also reentrant-safe: nested DISPLAY_IN_PROGRESS scopes (e.g.
extract followed by gds write) now keep the outer state intact.

* cif/CIFhier.c — CIFGenSubcells
* extract/ExtSubtree.c — extSubtree
2026-05-11 14:20:47 -04:00
..
CIFgen.c Found that I needed to apply the same correction as the last 2026-04-10 13:39:17 -04:00
CIFhier.c Save and restore GrDisplayStatus across long operations 2026-05-11 14:20:47 -04:00
CIFint.h Decided to change the name of the new cifinput/cifoutput operator 2026-03-11 15:52:42 -04:00
CIFmain.c cif: use 'const' with 'rcsid' 2025-01-04 11:31:17 -05:00
CIFrdcl.c Corrected what appears to be a long-standing error in the GDS read 2026-03-22 13:11:27 -04:00
CIFrdpoly.c cif: use 'const' with readonly data (also consumer DBpaint) 2025-01-04 11:31:17 -05:00
CIFrdpt.c Corrected another place where the property handling had not been 2026-02-19 11:40:46 -05:00
CIFrdtech.c Decided to change the name of the new cifinput/cifoutput operator 2026-03-11 15:52:42 -04:00
CIFrdutils.c freeMagic1() idiom insertion at all sites reported by static code analysis 2025-12-19 09:31:58 -05:00
CIFread.h header file #ifndef guard namespace consistency (global change) 2025-07-29 10:50:32 -04:00
CIFsee.c Reworked the method from the previous set of commits, which creates 2026-03-10 14:25:02 -04:00
CIFtech.c Decided to change the name of the new cifinput/cifoutput operator 2026-03-11 15:52:42 -04:00
CIFwrite.c Add ClientData parameter to indirect-call callbacks for WASM 2026-05-11 14:20:47 -04:00
Makefile Initial commit at Tue Apr 25 08:41:48 EDT 2017 by tim on stravinsky 2017-04-25 08:41:48 -04:00
cif.h header file #ifndef guard namespace consistency (global change) 2025-07-29 10:50:32 -04:00