Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2006-11-12 01:47:41 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2006-11-12 01:47:41 +0300
commit8857f4ce86cd277d45e513ef1025cd91c4c74753 (patch)
treee781a44751300dec9e39ce683ce38b4441279250 /intern
parentc1b4132e8d33f90b959c8b431b02f57d1cefdf66 (diff)
Patch #5195 by Anders Gudmundson.
On X11, make the table device name check case insensitive.
Diffstat (limited to 'intern')
-rwxr-xr-xintern/ghost/intern/GHOST_WindowX11.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/ghost/intern/GHOST_WindowX11.cpp b/intern/ghost/intern/GHOST_WindowX11.cpp
index d96e4937f16..0fe101ab258 100755
--- a/intern/ghost/intern/GHOST_WindowX11.cpp
+++ b/intern/ghost/intern/GHOST_WindowX11.cpp
@@ -235,7 +235,7 @@ void GHOST_WindowX11::initXInputDevices()
old_handler = XSetErrorHandler(ApplicationErrorHandler) ;
for(int i=0; i<device_count; ++i) {
- if(!strcmp(device_info[i].name, "stylus")) {
+ if(!strcasecmp(device_info[i].name, "stylus")) {
m_xtablet.StylusID= device_info[i].id;
m_xtablet.StylusDevice = XOpenDevice(m_display, m_xtablet.StylusID);
@@ -260,7 +260,7 @@ void GHOST_WindowX11::initXInputDevices()
m_xtablet.StylusID= 0;
}
}
- if(!strcmp(device_info[i].name, "eraser")) {
+ if(!strcasecmp(device_info[i].name, "eraser")) {
m_xtablet.EraserID= device_info[i].id;
m_xtablet.EraserDevice = XOpenDevice(m_display, m_xtablet.EraserID);
if (m_xtablet.EraserDevice == NULL) m_xtablet.EraserID= 0;