From 4ef1caacef8237a3f910393b3fa5e7c70cc725fb Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 18 May 2009 00:23:35 +0000 Subject: nuke the leading underscore notation for local static functions - there are far better ways to know. "go for it" oga@ --- mousefunc.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'mousefunc.c') diff --git a/mousefunc.c b/mousefunc.c index 8dcc660..2f0a3dd 100644 --- a/mousefunc.c +++ b/mousefunc.c @@ -16,20 +16,20 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: mousefunc.c,v 1.8 2009/04/15 14:10:07 okan Exp $ + * $Id: mousefunc.c,v 1.9 2009/05/18 00:23:35 okan Exp $ */ #include "headers.h" #include "calmwm.h" -static int _mousefunc_sweep_calc(struct client_ctx *, int, int, int, int); -static void _mousefunc_sweep_draw(struct client_ctx *, int, int); +static int mousefunc_sweep_calc(struct client_ctx *, int, int, int, int); +static void mousefunc_sweep_draw(struct client_ctx *, int, int); #define ADJUST_HEIGHT(cc, dy) ((cc->geom.height - cc->geom.min_dy) / dy) #define ADJUST_WIDTH(cc, dx) ((cc->geom.width - cc->geom.min_dx) / dx) static int -_mousefunc_sweep_calc(struct client_ctx *cc, int x, int y, int mx, int my) +mousefunc_sweep_calc(struct client_ctx *cc, int x, int y, int mx, int my) { int width = cc->geom.width, height = cc->geom.height; @@ -60,7 +60,7 @@ _mousefunc_sweep_calc(struct client_ctx *cc, int x, int y, int mx, int my) } static void -_mousefunc_sweep_draw(struct client_ctx *cc, int dx, int dy) +mousefunc_sweep_draw(struct client_ctx *cc, int dx, int dy) { struct screen_ctx *sc = CCTOSC(cc); char asize[10]; /* fits "nnnnxnnnn\0" */ @@ -103,7 +103,7 @@ mousefunc_window_resize(struct client_ctx *cc, void *arg) return; xu_ptr_setpos(cc->win, cc->geom.width, cc->geom.height); - _mousefunc_sweep_draw(cc, dx, dy); + mousefunc_sweep_draw(cc, dx, dy); for (;;) { XMaskEvent(X_Dpy, MouseMask|ExposureMask, &ev); @@ -113,10 +113,10 @@ mousefunc_window_resize(struct client_ctx *cc, void *arg) client_draw_border(cc); break; case MotionNotify: - if (_mousefunc_sweep_calc(cc, x, y, + if (mousefunc_sweep_calc(cc, x, y, ev.xmotion.x, ev.xmotion.y)) /* Recompute window output */ - _mousefunc_sweep_draw(cc, dx, dy); + mousefunc_sweep_draw(cc, dx, dy); /* don't sync more than 60 times / second */ if ((ev.xmotion.time - time) > (1000 / 60) ) { -- cgit v1.2.3-2-gb3c3