Commits

Jérôme Vuarand committed fc299b6

Actually, the strings are not cached. So re-send them on page switch.

  • Participants
  • Parent commits 0271a8a

Comments (0)

Files changed (1)

 			if active then
 				print("switching to page "..page)
 			end
-			-- strings are cached by DirectOutput, but not images, so we need to re-send them
 			if page==1 and active then
+				DirectOutput.SetString(device, 1, 0, "Page 1")
 				DirectOutput.SetImage(device, 1, 0, page1)
 			elseif page==2 and active then
+				DirectOutput.SetString(device, 2, 0, "Page 2")
 				DirectOutput.SetImage(device, 2, 0, page2)
 			end
 		elseif device and msg.message == WM_BUTTONS then