Re: How to enable font anti-aliasing in Wine?

2009-03-15 Thread Rick Jones

2009/3/15 Roderick Colenbrander :

... A string of registry changes enabled smoothed
fonts for me:


http://forum.winehq.org/viewtopic.php?p=20061&sid=6fbbcf362e44a66b310ef88f631c83f5

I was already using FontSmoothing=2 which was some improvement over 
nothing, but I didn't know these other settings. FontSmoothingType=2 made 
things much better, the others didn't seem to have any effect.


However, I then discovered that with FontSmoothingType=2, a Java app I run 
in Wine crashes when it opens. :(  The interesting item out of the Java 
stack trace is:


Caused by: java.lang.IllegalArgumentException: 0 incompatible with 
Text-specific LCD contrast key


Quite why Java is getting involved at this level I don't really know. 
Running on Windows with the same font smoothing settings it works fine.


Puzzling ... 


Re: Wine+Java+Nvidia crashes

2009-03-13 Thread Rick Jones
--On Friday, March 13, 2009 23:24:56 +0100 StefanDösinger 
 wrote:


¦ It is next to impossible to tell what is going wrong here. I'm afraid 
someone

¦ will have to dig into the GL calls and try to reproduce the crash in a
¦ stand-alone app and report it to Nvidia. That can be a quite nasty task. 
You

¦ might be able to get your app running by disabling d3d9.dll(d3d9="" in
¦ winecfg).

Sometimes the simplest things can be the least obvious. I've just tried 
disabling d3d9 in Configure Wine and it works! I just hadn't thought of 
doing that - I guess I assumed that because it was calling d3d9 it needed 
it.


That'll do for now, the app isn't actually doing any 3D rendering. In fact 
I'll try the same on the netbook where it's already working, it might 
improve the screen response which isn't wonderful at the moment.


Thanks!

--
Cheers
Rick 


Wine+Java+Nvidia crashes

2009-03-13 Thread Rick Jones
I'm running a Java app built for Windows (therefore needs Wine), and on a 
machine with Nvidia graphics it crashes when it tries to draw the main 
window. The exact same application and OS configuration on a different 
machine with Intel graphics works fine.


It crashes in wined3d, although the application is only drawing plain 
windows and dialogs - it looks like Java awt always calls d3d9 which call 
wined3d :(.


Relevant console output from wine is shown below, plus the stack from the 
app's error log.


OS is Ubuntu 8.10, Wine ver. 1.1.16 on both machines. On the faiing machine 
the graphics is Nvidia GPU 5200 series, screen size 1280x1024. I have tried 
both with the accelerated Nvidia driver v.173, and with the standard Linux 
driver, it makes no difference.


The machine that works is an Asus Eee 901 netbook, Intel graphics on 
1024x600 screen. Both machines have 2GB RAM.



Wine console output:

fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support 
to SetDepthStencilSurface

fixme:heap:RtlCompactHeap (0x11, 0x0) stub
fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support 
to SetDepthStencilSurface
fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support 
to SetDepthStencilSurface

#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x7d9c25c2, pid=8, tid=37
#
# Java VM: Java HotSpot(TM) Client VM (11.2-b01 mixed mode, sharing 
windows-x86)

# Problematic frame:
# C  [wined3d.dll+0x725c2]


Stack trace:

Stack: [0x0389,0x0399],  sp=0x0398de48,  free space=1015k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native 
code)

C  [wined3d.dll+0x725c2]
C  [wined3d.dll+0xaf2a0]
C  [d3d9.dll+0x12957]
C  [awt.dll+0xad577]
C  [awt.dll+0x9c60c]
C  [user32.dll+0xb06aa]
C  [user32.dll+0xb0afa]
...


I've heard that wined3d and Nvidia don't play well together, but I don't 
know why this problem only shows up when running a Java app. Everything 
else I use works fine.


If anyone would like more info let me know.

--
Thanks
Rick Jones 


Re: String expansion (%n %t)

2009-03-08 Thread Rick Jones
--On Sunday, March 08, 2009 14:12:16 + Rob Shearman 
 wrote:


¦ 2009/3/8 Rick Jones :
¦ > Is there a Windows string function that expands escape sequences such 
as %n,

¦ > %t, etc, and which is replicated by Wine?
¦
¦ FormatMessageA/W?

Hmm, could be, possibly the only function that fits the bill. If my theory 
was right, then changing %n in the ini file to %r%n would work - but it 
doesn't :(


Also, FormatMessage is in kernel32, so not much chance of a native DLL 
either :-/


Ho-hum, could be time to get onto the developer and see if he's interested 
in making his app. work under Wine.


Cheers.

¦ > I ask because I have a Windows app that is screwing up because of 
something
¦ > like this. It has a private .ini settings file, and some settings are 
stored
¦ > in that kind of format, but when it runs on Wine they are wrongly 
retrieved

¦ > (this is a 3rd party app, I don't have the source).
¦ >
¦ > It looks horribly like %n is being expanded to NL instead of CR-NL. If
¦ > there's a Windows/Wine function for this then I might be able to use a
¦ > native DLL to get round it, but I've no idea where it might reside! 
AFAIK

¦ > GetPrivateProfileString() doesn't do this expansion inherently.
¦ >
¦ > Also if it is the case that the behaviour's different, then I would 
say it's

¦ > a Wine bug.
¦ >
¦ > Any ideas appreciated.
¦
¦ --
¦ Rob Shearman
¦





String expansion (%n %t)

2009-03-08 Thread Rick Jones
Is there a Windows string function that expands escape sequences such as 
%n, %t, etc, and which is replicated by Wine?


I ask because I have a Windows app that is screwing up because of something 
like this. It has a private .ini settings file, and some settings are 
stored in that kind of format, but when it runs on Wine they are wrongly 
retrieved (this is a 3rd party app, I don't have the source).


It looks horribly like %n is being expanded to NL instead of CR-NL. If 
there's a Windows/Wine function for this then I might be able to use a 
native DLL to get round it, but I've no idea where it might reside! AFAIK 
GetPrivateProfileString() doesn't do this expansion inherently.


Also if it is the case that the behaviour's different, then I would say 
it's a Wine bug.


Any ideas appreciated.

Rick