Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Ctrl: Paint only affected area?
Re: Ctrl: Paint only affected area? [message #31701 is a reply to message #31700] Sun, 20 March 2011 15:51 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1791
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Lance wrote on Sun, 20 March 2011 15:31

Shall I call you Honza or dolik? Smile I use the Ubuntu ppa you maintain regularly, and thank you for the time you you invested for the community.
Honza is my real name, dolik.rce is a nick. You can use whichever you prefer, I respond on both Smile

Lance wrote on Sun, 20 March 2011 15:31

Your reply is closer to what I was actually seeking. A little question, as Upp will alway mask and transfer the changed Rect or possibly combined area to the screen, what's the point of cache the Ctrl image? I should be able to draw on a blank image representing the Ctrl Rect, and draw only the part that's changed, Upp will mask off other parts before it transfer to the screen anyways.

Am I right or do I misinterpret your answer?

You are quite possibly right. I just never tried this, so I am not sure how it works. There might be some hidden obstacles with this approach, e.g. when the whole area needs to be repainted even though nothing or only part has changed (e.g. when minimalized window is restored). This could be worked around if there was a way to obtain description of area which is scheduled for repainting, but AFAIK that is not possible at the moment (the screen area is invalidated right away and the rect is not stored anywhere). But as I say, I never tried so the problems I imagine might not exist or might have a solution Wink

Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: U++ questions
Next Topic: VC++ 2010 Express
Goto Forum:
  


Current Time: Sun Aug 24 15:23:26 CEST 2025

Total time taken to generate the page: 0.07432 seconds