make the render code use the window's opacity