-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: rxvt-unicode-sixel
action: commit
revision:
path_from:
revision_from: 8ba7dd9c026be68f9b0cf7bf1ad459b40f3d0664:
path_to:
revision_to:

git.thebackupbox.net

rxvt-unicode-sixel

git://git.thebackupbox.net/rxvt-unicode-sixel

commit 8ba7dd9c026be68f9b0cf7bf1ad459b40f3d0664
Author: Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
Date:   Mon Oct 15 14:56:06 2007 +0000

    Nuke pixel_position.

diff --git a/src/command.C b/src/command.C

index 9068ca6fc5f3fb3e8f7b81a11954d48754bffcde..

index ..edff4d111c794f64ab4c4734a8d4dc849f9cdfc8 100644

--- a/src/command.C
+++ b/src/command.C
@@ -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;
diff --git a/src/rxvt.h b/src/rxvt.h

index f12aa1979a7e699434c7596cf8d318631ddc347e..

index ..1ba9e33217f1b8f325b60fd32f0ff1233ed0dd9b 100644

--- a/src/rxvt.h
+++ b/src/rxvt.h
@@ -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);
diff --git a/src/screen.C b/src/screen.C

index c8e9dfa660087e7663f5a6af9d82d1be2aa1efa7..

index ..6edee5cbb600be6dfcdee7b05454675d8e65ebaf 100644

--- a/src/screen.C
+++ b/src/screen.C
@@ -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

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 12:00:40 2024