viewer.cc: fix incorrect copy & paste of GetWidth

Replace window.GetWidth(), window.GetWidth() with window.GetWidth(),
window.GetHeight().