Hello, I think the patch has a small issue (it happens when I try to go fullscreen from a 640:480 window to 1280x800 in my laptop):
I think line 25 of director_projection.patch should be: elif (float(width)/height) < self._window_aspect: instead of if (float(width)/height) < self._window_aspect: Hope this helps and thanks for this great patch. Best regards On 26 ene, 05:42, claudio canepa <[email protected]> wrote: > On Sun, Jan 24, 2010 at 3:21 PM, Arnaud Bergeron <[email protected]>wrote: > > > I know I am digging up a old thread but the patch proposed (or > > something similar) has still not be applied. > > Yes, patches were stacking in the issue tracker. Work to review, test and > integrate patches is planned to begin near Feb 5. > > > > > > > > > The basic problem is that if you create an initial window with an > > aspect ratio of says 4:3 and the user has a 16:10 screen, all is well > > is windowed mode. But as soon as you switch to fullscreen then the > > drawing no longer has the proper aspect ratio and the mouse > > displacement is no longer properly mapped to what is on screen. > > > [director_projection.patch] is an updated patch (against current > > trunk) for the display area problem. > > [director_displacement.patch] is a patch to add a > > get_virtual_displacement() method that does similar work than > > get_virtual_coordinates() but for mouse movements. > > > Arnaud > > > -- > > Big thanks Arnaud (and Devon) for the patches; I can't integrate right now > due to workload, but in February it will be done. > > If someone want to code a small interactive test for the issues (console > print with instructions + expected behavoir, simple scene in the spirit of > cocos test directory ), feel free to share... :) > > -- > claudio -- You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/cocos-discuss?hl=en.
