Re: Screen Resolution
Re: Screen Resolution
- Subject: Re: Screen Resolution
- From: David Remahl <email@hidden>
- Date: Sun, 3 Aug 2003 21:00:46 +0200
On svndag 3 augusti 2003, at 20.46PM, Seth Willits wrote:
How can I change the screen resolution? Do I have to pop into Carbon
and do it? If so, how? Do I #import <Carbon/Carbon.h> and then just
use all the Carbon stuff as I would in C? Isn't there an example
"Carbon in Cocoa" on Apple's website?
Seth Willits
In general, yes, that is all there is to using most Carbon API's. There
are some exceptions regarding API's that include GUI, and there is
indeed a sample code project on Apple's site demonstrating how to do
that.
In this case, you don't need to use Carbon. There are other C API's in
ApplicationServices (CoreGraphics) that allow you to do it.
First import <ApplicationServices/ApplicationServices.h>, then use the
functions in CGDisplayConfiguration.h to change the resolution.
If you want to change the resolution in preparation for some full
screen work you are going to do (that does not include Quartz drawing),
then you should first capture the display. That will make sure that
other applications are not confused by what you are doing to the
display.
/ Rgds, David Remahl
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.