mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
Update to 1.36
Feature safe: yes
This commit is contained in:
parent
dde90e4a33
commit
73f738d32b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=285951
3 changed files with 3 additions and 84 deletions
|
@ -5,8 +5,7 @@
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
PORTNAME= xnecview
|
PORTNAME= xnecview
|
||||||
PORTVERSION= 1.35
|
PORTVERSION= 1.36
|
||||||
PORTREVISION= 6
|
|
||||||
CATEGORIES= comms hamradio
|
CATEGORIES= comms hamradio
|
||||||
MASTER_SITES= http://wwwhome.cs.utwente.nl/%7Eptdeboer/ham/xnecview/
|
MASTER_SITES= http://wwwhome.cs.utwente.nl/%7Eptdeboer/ham/xnecview/
|
||||||
EXTRACT_SUFX= .tgz
|
EXTRACT_SUFX= .tgz
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
SHA256 (xnecview-1.35.tgz) = 41351bb0aad3c5ff1b13240c40a6f50fcbac04988b5347a4f40e0f9e33c7eb44
|
SHA256 (xnecview-1.36.tgz) = be2837cedb1526b90f846c3205503858c7471434c678dcd9ce848415dfd76e86
|
||||||
SIZE (xnecview-1.35.tgz) = 77971
|
SIZE (xnecview-1.36.tgz) = 79535
|
||||||
|
|
|
@ -1,80 +0,0 @@
|
||||||
|
|
||||||
commit 02352e102c1913dc232500c7fd80b3947a8593ea
|
|
||||||
Author: Diego Ongaro <ongardie@gmail.com>
|
|
||||||
Date: Sun Jun 29 00:30:09 2008 +0100
|
|
||||||
|
|
||||||
remove depth
|
|
||||||
|
|
||||||
diff --git a/xwin.c b/xwin.c
|
|
||||||
index 31d3cf2..4011c16 100644
|
|
||||||
--- xwin.c
|
|
||||||
+++ xwin.c
|
|
||||||
@@ -39,7 +39,6 @@ GtkLabel *msgwidget; /* label widget in top right corner, used for several m
|
|
||||||
int fontheight;
|
|
||||||
GdkPixmap *gbackg2=NULL; /* for window2, we draw into this pixmap */
|
|
||||||
GdkColormap *gcm;
|
|
||||||
-int depth;
|
|
||||||
|
|
||||||
int redraw=1; /* flag which signifies need for redrawing of struct/gain plot */
|
|
||||||
int dragging=0; /* flag to indicate that user is dragging the struct/gain plot */
|
|
||||||
@@ -360,7 +359,7 @@ gint resize_event(GtkWidget *w,GdkEventConfigure *ev,gpointer dummy)
|
|
||||||
winsizex=ev->width;
|
|
||||||
winsizey=ev->height;
|
|
||||||
gdk_pixmap_unref(gbackg);
|
|
||||||
- gbackg=gdk_pixmap_new(w->window,winsizex,winsizey,depth);
|
|
||||||
+ gbackg=gdk_pixmap_new(w->window,winsizex,winsizey,gdk_drawable_get_depth(w->window));
|
|
||||||
calcproj();
|
|
||||||
redraw=1;
|
|
||||||
#if 0
|
|
||||||
@@ -876,7 +875,7 @@ gint resize_event2(GtkWidget *w,GdkEventConfigure *ev,gpointer dummy)
|
|
||||||
win2sizex=ev->width;
|
|
||||||
win2sizey=ev->height;
|
|
||||||
gdk_pixmap_unref(gbackg2);
|
|
||||||
- gbackg2=gdk_pixmap_new(w->window,win2sizex,win2sizey,depth);
|
|
||||||
+ gbackg2=gdk_pixmap_new(w->window,win2sizex,win2sizey,gdk_drawable_get_depth(w->window));
|
|
||||||
|
|
||||||
redraw2=1;
|
|
||||||
return TRUE;
|
|
||||||
@@ -1035,10 +1034,12 @@ void cmd_setZ0(GtkEntry *w)
|
|
||||||
|
|
||||||
void getcolor(char *name,GdkColor *xc)
|
|
||||||
{
|
|
||||||
+#if 0
|
|
||||||
if (depth==1) { /* on 1bpp displays, choose black for everything except the background */
|
|
||||||
if (strcmp(name,C_BG)) name="black";
|
|
||||||
else name="white";
|
|
||||||
}
|
|
||||||
+#endif
|
|
||||||
gdk_color_parse(name,xc);
|
|
||||||
if (!gdk_colormap_alloc_color(gcm,xc,TRUE,FALSE)) {
|
|
||||||
/* if allocation failed, use black */
|
|
||||||
@@ -1210,7 +1211,9 @@ void maininitX(int really)
|
|
||||||
{
|
|
||||||
GdkVisual *vi;
|
|
||||||
vi = gdk_visual_get_best();
|
|
||||||
+#if 0
|
|
||||||
depth=vi->depth;
|
|
||||||
+#endif
|
|
||||||
gcm=gdk_colormap_new(vi,FALSE);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1386,7 +1389,7 @@ void maininitX(int really)
|
|
||||||
winsizex=toprow->requisition.width;
|
|
||||||
calcproj();
|
|
||||||
}
|
|
||||||
- gbackg=gdk_pixmap_new(w->window,winsizex,winsizey,depth);
|
|
||||||
+ gbackg=gdk_pixmap_new(w->window,winsizex,winsizey,gdk_drawable_get_depth(w->window));
|
|
||||||
|
|
||||||
upd_msg();
|
|
||||||
|
|
||||||
@@ -1482,7 +1485,7 @@ void maininitX(int really)
|
|
||||||
|
|
||||||
ggc2 = gdk_gc_new(w->window);
|
|
||||||
|
|
||||||
- gbackg2=gdk_pixmap_new(w->window,win2sizex,win2sizey,depth);
|
|
||||||
+ gbackg2=gdk_pixmap_new(w->window,win2sizex,win2sizey,gdk_drawable_get_depth(w->window));
|
|
||||||
|
|
||||||
gtk_signal_connect( GTK_OBJECT(w), "expose_event", GTK_SIGNAL_FUNC(expose_event2), NULL);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue