[R99] Viewports incorrect on 1st tick

Bugs will be moved here once resolved.

Post » Thu Aug 09, 2012 10:24 am

EDIT: Please see second post.
I am getting strange results for the WindowWidth, WindowHeight and Viewport dimensions when in full screen scaled mode.

The following two CAPX files are identical except one has a sprite:

https://dl.dropbox.com/u/41218343/Window%20Dimensions.capx

https://dl.dropbox.com/u/41218343/Window%20Dimensions%20with%20sprite.capx

Without a sprite, WindowWidth and ViewportRight are returned as 480 (as specified in my project settings under window size). With the small sprite added, WindowWidth is then returned as my real screen width and I don't understand what ViewPortRight is.
WindowWidth/2 is in the centre of the screen when no sprites are in the project but somewhere to the right when the project has a sprite.

I am getting similar results for the other dimensions.

Specified grid co-ordinates don't change (X and Y).

I have tested this in Chrome and Firefox with the same results. I have also updated my ATi Radeon 5060 graphics card driver and tested it on my partners desktop. I have tested it on 32bit and 64bit versions of Windows 7.

I don't know which is version correct. I believe the result returned by my first capx (without the sprite) is more intuitive.

Many thanks

Keep up the good work
Nathan2012-08-11 06:41:16
B
29
S
8
G
4
Posts: 61
Reputation: 6,205

Post » Sat Aug 11, 2012 6:37 am

I am pretty convinced there is a bug here. The viewports are not reported correctly on the 1st tick.

My following capx illustrates how they change after the 1st tick:

https://dl.dropbox.com/u/41218343/viewports%20wrong%20on%20the%201st%20tick.capx
B
29
S
8
G
4
Posts: 61
Reputation: 6,205

Post » Wed Aug 15, 2012 12:36 am

I too am encountering this error. It does complicate event for UI scaling.
B
55
S
12
G
8
Posts: 339
Reputation: 9,314


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 4 guests