zarfy

Check-in [40eb5ed148]
Login

Check-in [40eb5ed148]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:regression: cannot re-position screens.
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA1: 40eb5ed1481e4c0410cbdb6ca9867f56362b8e7a
User & Date: jamesbond 2019-02-27 02:18:38.900
Context
2019-02-27
02:18
regression: cannot re-position screens. Leaf check-in: 40eb5ed148 user: jamesbond tags: trunk
2019-02-18
06:09
replace undefined behaviour with proper code, eliminating warning messages. check-in: b9ff420b78 user: jamesbond tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/callbacks.c.
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
}

/* crtc map area clicked */
gint
map_click()
{
	int x, y;
	double scale = map_scale;

	if (scale == 0)
		scale= (double)(map_da->allocation.height) / (double)maxheight;

	if ( selected.crtc == NULL ) return FALSE;

/* once seen, get rid of tooltip so as not to annoy */
//	gtk_widget_set_has_tooltip ( map_da, FALSE );

	gdk_window_get_pointer(map_da->window, &x, &y, NULL);







|


|







119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
}

/* crtc map area clicked */
gint
map_click()
{
	int x, y;
	double scale = 1/map_scale;

	if (scale == 0)
		scale= (double)maxheight / (double)(map_da->allocation.height);

	if ( selected.crtc == NULL ) return FALSE;

/* once seen, get rid of tooltip so as not to annoy */
//	gtk_widget_set_has_tooltip ( map_da, FALSE );

	gdk_window_get_pointer(map_da->window, &x, &y, NULL);