Wednesday, May 28, 2008

Wacom Bamboo Gimp Inkscape Fix

Ah...kirnyaaaa aku punya juga drawing tablet, nice man! Emang hobby gambar udah dari kecil, namun akhir-2 ini sangat sibuk dgn kerjaan sampai-2 jarang pegang pencil (hehe begaya digital mbok!) Pikir-2 pengen punya jadi keturutan! Drawing Tablet Wacom Bamboo Fun harga 1,6 jute nice nice...! Langsung aja coba dgn bonus softwarenya corel draw and photoshop element basic basic basic semua jadi kesel! Sudah puas ternya fitur softwarenya kurang meriah, langsung aja kepikir GIMP and INKSCAPE yang kerasa indonya gitu lo (alias GRATES!!). Abis idupin GIMP ee bambooku langsung ngaco, sering nyendat-2 kaya kambing beol, coba inkscape eee samimawon!! muncrat deh!
Searching-2 kaya orang kebelet ga nemu-2 solusi terpaksa dikulkasin tabletnya sambil nunggu gimp bisa di pake. Sekian tahun lamanya menunggu (ciee...baru 2 bulan lage pret!) akhirnya ada juga pahlawan bernama Thomas Bleeker yang dengan gagahnya meng-hex .lib gimp dan inkscape, bentar ya ogut copy in caranya:


Comment #24 from Thomas Bleeker (points: 0)
2008-05-09 08:11 UTC [reply]

Details for the attachment I just added:

I have the same problem but managed to patch the program so that it works
correctly again, at least for me (I haven't tested it yet on other computers).

OS: Vista 32-bit + SP1, English
Tablet: Wacom Grapphire 4, latest drivers installed

My problem was with Inkscape but I tested GIMP and it has the same problem,
like veryone describes here, the cursor freezes on certain proximity events.

I looked around in the relevant source file (gdkinput-win32.c) and after some
testing I found out the packet rate setting causes the problem:

(lc is the LOGCONTEXT structure)
lc.lcPktRate = 50;

However, the Wacom Windows Developer FAQ
(http://www.wacomeng.com/devsupport/ibmpc/wacomwindevfaq.html) states:

"The lcPcktRate field is not functional in the non-Wacom Wintab which shipped
with older Wacom tablets. The Wacom Wintab currently doesn't support lcPktRate
either. In both Wintabs, lcPktRate is reported as 100, but the tablet will
actually be sending data at the highest rate possible for whatever mode in
which the tablet is set."

I tried setting this value to just zero and all problems disappeared. Both
Inkscape and GIMP work as expected, including pressure and tool switching.

Since I didn't feel like compiling all the necessary libraries again I just
binary patched the GDK DLL for Inkscape and GIMP, but I have attached a source
code patch for GTK that should produce the same result.

I hope this fix will work on other systems as well, if you want to quickly
check if this fix works for Inkscape or GIMP then you can apply the binary
patch. For this you need these specific versions (which are the latest at the
moment of writing)

Inkscape: 0.46
GIMP: 2.4.5 i686

You will also need a hex editor, I use HxD (http://mh-nexus.de/hxd/),
description below is for that tool.

Install as usual, then run HxD (be sure to run it as administrator if you use
Vista with UAC and installed in program files!!). For inkscape, in HxD open
libgdk-win32-2.0-0.dll (this file should be 639270 bytes). When patching GIMP,
open the same file from the bin directory inside the GIMP directory, this
version of the DLL should be 617992 bytes.

Menu search, goto (or press alt+g).
Offset: 39030 for Inkscape, 39180 for GIMP
Select 'hex', relative to 'begin' and press OK.

Your cursor should now be at the hexadecimal offset you've entered, you should
see this sequence of bytes:

32 00 00 00 8B 4D 88 89 85 E4 FD FF FF B8 E1 15

Type 00 to overwrite the 32 at the start with 00. It will become red. Save the
file, close HxD and try the program again.

weessss pokok e tok cer!!!! tapi jangan girang dulu, erasernya masih tidak jalan!! Who careeeessss.......!!!!
GOD Bless Thomas Bleeker

Source Link

No comments: