Menu

#6801 ZVISION: Bad word-wrapping in original save dialog

Zork Nemesis
closed-fixed
None
5
2015-02-18
2015-02-06
No

Current Git snapshot of ScummVM, English version of the game from DVD version of ZGI

When using the original save dialog, and trying to save over a previously used save slot, the game asks you to confirm that this is what you want to do. The message isn't corrently word-wrapped however, as seen in the attached picture.

The message that it's trying to show is "<FONT Garamond BOLD on JUSTIFY center POINT 30 RED 200 GREEN 50 BLUE 50>Notice: <RED 100>You are about to overwrite a previously saved game. <BLUE 200>Continue? (y/n)<RED 255 GREEN 255 BLUE 255>"

As far as I can tell, the error happens in part because the line break is supposed to happen right after a formatting tag.

This is giving me a horrible sense of déjà vu, because word-wrapping was something I could never get to work right back in the eighties, when I dreamed of writing my own text adventure from scratch. :-)

1 Attachments

Discussion

  • Torbjörn Andersson

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -2,7 +2,7 @@
    
     When using the original save dialog, and trying to save over a previously used save slot, the game asks you to confirm that this is what you want to do. The message isn't corrently word-wrapped however, as seen in the attached picture.
    
    -The message that it's trying to show is "<FONT Garamond BOLD on JUSTIFY center POINT 30 RED 200 GREEN 50 BLUE 50>Notice: <RED 100>You are about to overwrite a previously saved game. <BLUE 200>Continue? (y/n)<RED 255 GREEN 255 BLUE 255>"
    +The message that it's trying to show is "&lt;FONT Garamond BOLD on JUSTIFY center POINT 30 RED 200 GREEN 50 BLUE 50&gt;Notice: &lt;RED 100&gt;You are about to overwrite a previously saved game. &lt;BLUE 200&gt;Continue? (y/n)&lt;RED 255 GREEN 255 BLUE 255&gt;"
    
     As far as I can tell, the error happens in part because the line break is supposed to happen right after a formatting tag.
    
     
  • RichieSams

    RichieSams - 2015-02-11
    • status: open --> open-accepted
    • assigned_to: RichieSams
     
  • RichieSams

    RichieSams - 2015-02-11

    http://i.imgur.com/uTXr4IX.png

    I've re-written the text wrapping code. I'm still in the process of getting everything cleaned up. but it looks to be working.

     
  • RichieSams

    RichieSams - 2015-02-11
    • status: open-accepted --> open-fixed
     
  • RichieSams

    RichieSams - 2015-02-11

    Should be fixed with commit a851fa8e

     
  • RichieSams

    RichieSams - 2015-02-18
    • status: open-fixed --> closed-fixed
     
MongoDB Logo MongoDB