diff --git a/readme.txt b/readme.txt index 2946ef7..c4d53e6 100644 --- a/readme.txt +++ b/readme.txt @@ -49,6 +49,10 @@ Release notes: The problem isn't really fixed, but it will no longer corrupt your game text. + Backend: styles are now properly reset after printing a progress + bar inside a div on Z-machine. (Previously it would reset to + unstyled text, even if the div was bold or italic.) + Backend: fixed bug with hex colors (#ff8800) on Z-machine causing problems for older interpreters. diff --git a/src/runtime_z.c b/src/runtime_z.c index 9493c0c..4123e79 100644 --- a/src/runtime_z.c +++ b/src/runtime_z.c @@ -3995,6 +3995,7 @@ struct rtroutine rtroutines[] = { // not inside status box {Z_BUFFER_MODE, {SMALL(1)}}, {Z_TEXTSTYLE, {SMALL(0)}}, + {Z_CALL1N, {ROUTINE(R_RESET_STYLE)}}, // Reset to the div's style {Z_RFALSE}, {Z_END}, }