int button_number, key_state = 0;
int x, y;
- x = ev.x;
- y = ev.y;
- pixel_position (&x, &y);
+ x = Pixel2Col (ev.x);
+ y = Pixel2Row (ev.y);
if (MEvent.button == AnyButton)
button_number = 3;
void selection_extend (int x, int y, int flag) NOTHROW;
void selection_rotate (int x, int y) NOTHROW;
- void pixel_position (int *x, int *y) NOTHROW;
-
#if defined(NEXT_SCROLLBAR)
// scrollbar-next.C
Pixmap renderPixmap (const char *const *data, int width, int height);
* MOUSE ROUTINES *
* ------------------------------------------------------------------------- */
-/*
- * return col/row values corresponding to x/y pixel values
- */
-void
-rxvt_term::pixel_position (int *x, int *y) NOTHROW
-{
- *x = Pixel2Col (*x);
- /* max_it (*x, 0); min_it (*x, (int)ncol - 1); */
- *y = Pixel2Row (*y);
- /* max_it (*y, 0); min_it (*y, (int)nrow - 1); */
-}
-
/* ------------------------------------------------------------------------- */
#ifdef USE_XIM
void