[Commits] [wesnoth/wesnoth] bbd946: Story Viewer: fixed all floating images drawing in...

GitHub noreply at github.com
Mon Apr 10 05:13:10 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: bbd9463b175130da4c7653a9745a7b3da6163e3c
      https://github.com/wesnoth/wesnoth/commit/bbd9463b175130da4c7653a9745a7b3da6163e3c
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-04-10 (Mon, 10 Apr 2017)

  Changed paths:
    M src/gui/dialogs/story_viewer.cpp

  Log Message:
  -----------
  Story Viewer: fixed all floating images drawing in the same spot

Since all the floating images' data was set with a formula that relied on a canvas-wide variable whose value
was constantly changing and no serialization was done, the formulas all evaluated to the same location.

To fix this, we do away with the use of the variables and insert the necessary values directly into the formula
string.





More information about the Commits mailing list