projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://ftp.ksu.edu.tw/FTP/FreeBSD/distfiles/xscreensaver-4.20.tar.gz
[xscreensaver]
/
hacks
/
glx
/
gltext.c
diff --git
a/hacks/glx/gltext.c
b/hacks/glx/gltext.c
index 0e83ec34af50c1237832afa5692412a6bbcef68c..3dd7922489892af444c8bb1a72e88083ed5f9999 100644
(file)
--- a/
hacks/glx/gltext.c
+++ b/
hacks/glx/gltext.c
@@
-1,4
+1,4
@@
-/* gltext, Copyright (c) 2001
, 2002, 2003, 2004
Jamie Zawinski <jwz@jwz.org>
+/* gltext, Copyright (c) 2001
-2005
Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
@@
-252,7
+252,7
@@
text_handle_event (ModeInfo *mi, XEvent *event)
text_configuration *tp = &tps[MI_SCREEN(mi)];
if (event->xany.type == ButtonPress &&
text_configuration *tp = &tps[MI_SCREEN(mi)];
if (event->xany.type == ButtonPress &&
- event->xbutton.button
&
Button1)
+ event->xbutton.button
==
Button1)
{
tp->button_down_p = True;
gltrackball_start (tp->trackball,
{
tp->button_down_p = True;
gltrackball_start (tp->trackball,
@@
-261,11
+261,19
@@
text_handle_event (ModeInfo *mi, XEvent *event)
return True;
}
else if (event->xany.type == ButtonRelease &&
return True;
}
else if (event->xany.type == ButtonRelease &&
- event->xbutton.button
&
Button1)
+ event->xbutton.button
==
Button1)
{
tp->button_down_p = False;
return True;
}
{
tp->button_down_p = False;
return True;
}
+ else if (event->xany.type == ButtonPress &&
+ (event->xbutton.button == Button4 ||
+ event->xbutton.button == Button5))
+ {
+ gltrackball_mousewheel (tp->trackball, event->xbutton.button, 10,
+ !!event->xbutton.state);
+ return True;
+ }
else if (event->xany.type == MotionNotify &&
tp->button_down_p)
{
else if (event->xany.type == MotionNotify &&
tp->button_down_p)
{
@@
-396,7
+404,7
@@
fill_character (GLUTstrokeFont font, int c, Bool wire)
ly = coord->y;
}
}
ly = coord->y;
}
}
- return (int) (ch->right + tube_width
/2
);
+ return (int) (ch->right + tube_width);
}
return 0;
}
}
return 0;
}