Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resizing window



My Quartz composition is in an OpenGLContext in an NSWindow.

If I change the size of the window, using setFrame, the composition does not
scale accordingly, but remains at the original resolution. i.e. if the width
and height of the window are halved, one only sees the top left quarter of
the composition area.


I have found a workaround :-

            [_openGLContext clearDrawable];
            [_window setFrame:rect display:NO];
            [_openGLContext setView: [_window contentView]];


However this seems like a using a hammer to crack a nut. Is there any way to
force the QC composition to rescale with the window ?

There's a bug in the QCRenderer where it does pick up automatically OpenGL viewport changes and this affect the rendering of some compositions. The only workaround is to destroy / recreate the renderer when rendering dimensions change.


However, it does not seem that this is what you're encountering: can you send me a test case?


________________________________________________________ Pierre-Olivier Latour email@hidden Quartz Composer Architect Graphics & Imaging Team

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden
References: 
 >Resizing window (From: Guy Brooker <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.