Lines Matching refs:magnification
115 int magnification, char *border_color, int border_width,
118 static void repaint_image (XImage *image, XEvent *eventp, int magnification,
121 static Bool do_magnify (XSizeHints *shp, XSizeHints *whp, int magnification,
175 int magnification = 0; /* enlarged image will be m by m */
201 case 'm': /* -mag magnification */
203 magnification = atoi (argv[i]);
277 if (magnification < 1) {
278 char *tmp = XGetDefault (dpy, ProgramName, "magnification");
281 if (tmp) magnification = atoi (tmp);
342 magnify (geometry, source_geometry, magnification,
350 * Do the setup for the magnification. Use the geometry, source_geometry,
351 * and magnification to figure out how big of an area to magnify, and by
354 * magnification = window.geometry.width / source_geometry.width
355 * magnification = window.geometry.height / source_geometry.height
362 * magnification 0 5
374 int magnification, /* enlargement ratio */
406 if (magnification > 0) params |= valMagnification;
443 magnification = 0;
451 if ((params & valMagnification) && magnification <= 0) {
452 fprintf (stderr, "%s: bad magnification %d.\n",
453 ProgramName, magnification);
475 magnification = DEFAULT_MAGNIFICATION;
478 source_hints.width = window_hints.width / magnification;
479 source_hints.height = window_hints.height / magnification;
486 magnification = DEFAULT_MAGNIFICATION;
490 window_hints.width = source_hints.width * magnification;
491 window_hints.height = source_hints.height * magnification;
495 magnification = window_hints.width / source_hints.width;
497 if (tmp < magnification) magnification = tmp;
544 window_hints.width_inc = window_hints.height_inc = magnification;
709 (void) do_magnify (&source_hints, &window_hints, magnification,
718 } while (do_magnify (&source_hints, &window_hints, magnification,
849 int magnification,
962 repaint_image (image, &event, magnification, back_pixel);
976 MapPixWindow (mw, (buttonevent->y/magnification < height/2));
986 x /= magnification; y /= magnification;
1059 int magnification,
1078 e_row = ev->y / magnification;
1079 e_column = ev->x / magnification;
1080 initialx = e_column * magnification;
1082 ((ev->y + ev->height + magnification - 1) / magnification) - 1;
1084 ((ev->x + ev->width + magnification - 1) / magnification) - 1;
1098 r_y = e_row * magnification; /* to start */
1099 r_height = magnification; /* always doing just 1 line */
1141 r_width += magnification;
1154 r_y += magnification; /* advance to next scanline */