smarthaert / phoenixlib

Automatically exported from code.google.com/p/phoenixlib
0 stars 0 forks source link

Device.RenderOverlay #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Device.RenderOverlay does not works well when using the Resolution Independence 
example.

Size:= Renderer.GetWindowSize;

Size must be of the size of the Virtual Screen Size.

Original issue reported on code.google.com by wagenhei...@gmail.com on 15 Mar 2011 at 12:16

GoogleCodeExporter commented 9 years ago
The same problem occours to TPhxGuiEngine. Root.Size must be the size of 
VirtualScreen and not the size of the Device.

Original comment by wagenhei...@gmail.com on 15 Mar 2011 at 12:42

GoogleCodeExporter commented 9 years ago
I don't know why, but this messed my Render Targets also!

I have to add this to it works as before! But I don't know why!

ScaledX := Round((X + Game.VirtualOffset.X) * Game.VirtualScale.X);
ScaledY := Round((Y + Game.VirtualOffset.Y) * Game.VirtualScale.Y);

Original comment by wagenhei...@gmail.com on 15 Mar 2011 at 12:43

GoogleCodeExporter commented 9 years ago

Original comment by andreas....@gmail.com on 8 Aug 2013 at 2:11