• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CGDisplayBaseAddress
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CGDisplayBaseAddress


  • Subject: CGDisplayBaseAddress
  • From: Niyaz <email@hidden>
  • Date: Wed, 13 Apr 2005 17:15:06 +0530
  • Importance: Normal

Hi All,

I tried using CGDisplayBaseAddress API to get the base address to the
frame buffer of active display. Wrote the code as below:

/******************************** CODE BEGINS HERE
*****************************************/

void *addr = CGDisplayBaseAddress();
- Returns the base address in frame buffer memory of a active display or
captured by your application.

/******************************** CODE ENDS HERE
*****************************************/

I was able to execute this statement successfully with some valid
pointer returned. I can say it a valid because if using that pointer I
do memset(addr, size, "aaa"), it makes your display blacked out.

Can anybody please let me know how to make proper use of this pointer or
tell me the structure of the memory being pointed to by this pointer
having base address of framebuffer.

Thanking you in anticipation.

Regards
Niyaz N

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: SIGSEGV in NSEPSImageRep imageRepWithData
  • Next by Date: problem with ichat
  • Previous by thread: Re: Newbie problem with opening new windows and using bindings
  • Next by thread: problem with ichat
  • Index(es):
    • Date
    • Thread