-- 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:
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
--- 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
--- 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
--- 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