On Fri, 23 Aug 2013, Rodolfo García Peñas wrote:
- RLoadImage(file): Load the image, and render it if the RContext is not needed.
- RDrawImage(RContext, RImage): Draw the image on the WScreen. This function
depends on the WScreen.
With this change, we can create items (Menu, Dock, Clip,...) that are
screen independent. Then, we can draw them on the WScreen when needed.
If the WScreen change (for example, with XRandR), we only need repaint
them (using RDrawImage).
What is the advantage of this change? Would this move some operations that
are now done when the image is loaded only once to drawing the image which
can be done frequently? Does this lead to less efficient operation (by
eliminating images that are now cached for each screen)? (You could argue
that current systems are fast enough but doing unnecessary work is still
unnecessary, so shuold not be done if not needed.) Is the reason for this
change purely esthetic (i.e. some code would look better)? If so, is there
another way to make code look better (like using macros or new functions
to hide ugly parts)?
These are just some questions without knowing anything about your proposed
changes, so maybe I'm completely misunderstood this...
Regards,
BALATON Zoltan