[xiph-commits] r18243 - trunk/spectrum
xiphmont at svn.xiph.org
xiphmont at svn.xiph.org
Sat Apr 21 15:17:51 PDT 2012
Author: xiphmont
Date: 2012-04-21 15:17:51 -0700 (Sat, 21 Apr 2012)
New Revision: 18243
Modified:
trunk/spectrum/spec_plot.c
trunk/spectrum/version.h
Log:
Add clip rectangle to contraing pahse plot
Modified: trunk/spectrum/spec_plot.c
===================================================================
--- trunk/spectrum/spec_plot.c 2012-04-21 22:12:59 UTC (rev 18242)
+++ trunk/spectrum/spec_plot.c 2012-04-21 22:17:51 UTC (rev 18243)
@@ -488,6 +488,12 @@
gdk_draw_line(p->backing,p->drawgc,p->xgrid[i],0,p->xgrid[i],height-p->pady);
}
+ /* clip rectangle from here on out */
+ {
+ const GdkRectangle clip = {p->padx,0,width-p->padx,height-p->pady};
+ gdk_gc_set_clip_rectangle (p->drawgc, &clip);
+ }
+
/* phase? draw in phase and tics on right axis */
if(phase){
GdkColor rgb={0,0xd000,0x0000,0x0000};
@@ -617,6 +623,13 @@
cho+=p->ch[gi];
}
}
+
+ /* remove clip rectangle */
+ {
+ const GdkRectangle noclip = {0,0,width,height};
+ gdk_gc_set_clip_rectangle (p->drawgc, &noclip);
+ }
+
}
static void draw_and_expose(GtkWidget *widget){
Modified: trunk/spectrum/version.h
===================================================================
--- trunk/spectrum/version.h 2012-04-21 22:12:59 UTC (rev 18242)
+++ trunk/spectrum/version.h 2012-04-21 22:17:51 UTC (rev 18243)
@@ -1,2 +1,2 @@
#define VERSION "$Id$ "
-/* DO NOT EDIT: Automated versioning hack [Sat Apr 21 18:11:15 EDT 2012] */
+/* DO NOT EDIT: Automated versioning hack [Sat Apr 21 18:16:48 EDT 2012] */
More information about the commits
mailing list