From cfc257bc9f7b9222ba459c2b2409fd8b26db8346 Mon Sep 17 00:00:00 2001 From: ayin Date: Mon, 15 Oct 2007 14:56:06 +0000 Subject: [PATCH] Nuke pixel_position. --- src/command.C | 5 ++--- src/rxvt.h | 2 -- src/screen.C | 12 ------------ 3 files changed, 2 insertions(+), 17 deletions(-) diff --git a/src/command.C b/src/command.C index 9068ca6f..edff4d11 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 f12aa197..1ba9e332 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 c8e9dfa6..6edee5cb 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 -- 2.34.1