CVS commit - 0.97.00

Jan Depner <[email protected]>
Newsgroups gmane.comp.audio.jamin.devel
Message-ID <1181517574.6460.20.camel@eviltwin>
    *  Removed all XOR raster graphics operations from the HDEQ.

    *  Added tooltips to output and RMS peak/level text boxes.

    *  HDEQ spectrum curve color is now modifiable.

    *  HDEQ spectrum curve remains on screen when modifying HDEQ.

    *  Changed the default values for HDEQ background and spectrum curve
       to black and cyan respectively.


   This is a pretty major change.  Basically, we paint all the HDEQ
background elements (EQ curve, gain lines, notch handles, crossover
bars) to a GdkPixmap and then draw the entire pixmap to the widget at
the beginning of the draw_EQ_spectrum_curve function.  We then draw the
spectrum curve directly on the widget.  This way we don't have to worry
about keeping track of the last time we drew the curve in the XOR
graphics plane.  In addition to that we must draw the pixmap to the
widget when we modify the background elements.  We also save the HDEQ
spectrum curve when we draw it so that we can draw it back on the widget
when we're modifying the background elements.  That way we can at least
see the curve that was active at the time we began to modify stuff.

    The main reason for making this change to the HDEQ was because I had
received a bug report having to do with a particular 3D window manager.
I suspected at the time (and still do) that it had something to do with
the XOR graphics.  The other reason is that I have recently ported all
of my applications at work from Qt3 to Qt4.  This has been extremely
painful as they have removed raster graphics from Qt4.  At the same time
they have added alpha blending.  After all the work though I found that
my applications were much more stable and I didn't have the occasional
stray line due to not erasing an XOR line properly.  If I can figure out
how to do the alpha blending in GTK I may add slowly fading HDEQ
spectrum curves to the mix (configurable of course).

    As I said above, this is a major change.  Please try it out and see
if you have any problems.  There may be some speed issues because the
XOR graphics may have been a bit faster.  I have been unable to see any
slowdown on my system and, from what I've seen at work, blasting a
pixmap to the screen is really fast.  Let me know if you see any
problems.

Cheers,
Jan


-- 
Jan 'Evil Twin' Depner
http://myweb.cableone.net/eviltwin69

"Life should NOT be a journey to the grave with the intention of 
arriving safely in an attractive and well preserved body, but rather to 
skid in sideways, chardonnay in one hand, chocolate in the other, body 
thoroughly used up, totally worn out, and screaming 'WOO HOO, what a ride'"


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.