http://bugs.winehq.org/show_bug.cgi?id=18446
--- Comment #8 from Andy Prough andyprough@yahoo.com 2009-05-28 10:43:03 --- (In reply to comment #7)
Solution:
Wine has a bug with colors in apps per this page: http://wiki.winehq.org/256ColorsWorkarounds
I used the workaround of installing Xephyr on my Ubuntu system via Synaptic. Then I used the following command to start a window with PDF-Xchange Viewer running in the correct colors, with no more fading or rendering problems:
# first cd to the director containing the PDFXCview.exe file, then I ran: Xephyr :1 -ac -screen 1024x768x256 & DISPLAY=:1 wine PDFXCview.exe
This gave me a 1024x768x256 window. I had to go into wineconfig, and under the graphics tab unchecked the options for allowing the window manager to control and decorate the windows. This allowed me to maximize the program inside the nested window once running.
Looks gorgeous now. Running it in the Xephyr nested window made a huge difference.
Problem with my solution above - copy/paste does not work between a nested Xephyr window and the clipboard running in X - there is no way I can find to copy/paste between PDFXCview running in Xephyr and my other programs running natively in Linux.
As a solution, I tried using xnest and xinit from the following page, but no success: http://wiki.winehq.org/256ColorsWorkarounds
At last, I tried the final solution on the page, running PDFXCview in a new display via vnc. It worked, with copy/paste. Colors were limited to 32bit via vnc, and I found it running too slow at 32bit so I dropped it back to 16bit. Overall its running better visually and with copy/paste functionality between windows.
To do this, I added vnc4server and xvnc4viewer via Synaptic in Ubuntu. I used the following command to get a 1280x800 window running in maximum (for vnc) color of 16 bit: vnc4server :2 -cc 3 -depth 16 -geometry 1280x800 -localhost
Then I ran: xvnc4viewer :2
This brought up a window with a terminal. From there, I changed to the PDFXCview directory, and used: wine PDFXCview.exe
After I stopped the vnc window, I needed to run the following command to stop the vnc4server:
vnc4server -kill :2
As far as I could tell at first glance, everything is working under vnc. I was able to open a document, add some comments, save and close. I was also able to do a directory search, and open various documents from the search window. It was quite zippy running at 16 bit, and there was no noticeable degredation of color or layout.