Nuke pixel_position.
authorayin <ayin>
Mon, 15 Oct 2007 14:56:06 +0000 (14:56 +0000)
committerayin <ayin>
Mon, 15 Oct 2007 14:56:06 +0000 (14:56 +0000)
src/command.C
src/rxvt.h
src/screen.C

index 9068ca6fc5f3fb3e8f7b81a11954d48754bffcde..edff4d111c794f64ab4c4734a8d4dc849f9cdfc8 100644 (file)
@@ -1304,9 +1304,8 @@ rxvt_term::mouse_report (XButtonEvent &ev)
   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;
index f12aa1979a7e699434c7596cf8d318631ddc347e..1ba9e33217f1b8f325b60fd32f0ff1233ed0dd9b 100644 (file)
@@ -1366,8 +1366,6 @@ struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen {
   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);
index c8e9dfa660087e7663f5a6af9d82d1be2aa1efa7..6edee5cbb600be6dfcdee7b05454675d8e65ebaf 100644 (file)
@@ -3664,18 +3664,6 @@ rxvt_term::selection_send (const XSelectionRequestEvent &rq) NOTHROW
  *                              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