MCPcopy Create free account
hub / github.com/NetHack/NetHack / ghack_map_window_zoom

Function ghack_map_window_zoom

outdated/win/gnome/gnmap.c:275–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273*/
274
275static void
276ghack_map_window_zoom(GtkAdjustment *adj, gpointer data)
277{
278 if (adj->value > 3.0)
279 adj->value = 3.0;
280 if (adj->value < 0.5)
281 adj->value = 0.5;
282 ghack_map.zoom = adj->value;
283 gnome_canvas_set_pixels_per_unit(data, adj->value);
284}
285
286void
287ghack_map_cursor_to(GtkWidget *win, int x, int y, gpointer data)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected