Forum > Pazaak on second screen

Befaro
Joined: Feb 10
2010-06-24, 13:22
Hi,

I tried to play pazaak with 2 computer monior and when I drag the pazaak on the second screen (not main screen!) it does not work. i cant press any buttons.

is this a pazaak cantina related problem, something normal or a special problem i have.

~Befaro

DarthRevan
Joined: Nov 09
2010-06-24, 20:12
Thank you for your post!
I don't have a 2-monitor setup, so I am not able to reproduce this problem. I will ask a friend to test it in the next days..
Nevertheless I don't think this problem is related to Pazaak Cantina, because I don't use any screen related functions/classes (except in fullscreen mode). But we will see :)
Developer of Pazaak Cantina.
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

Befaro
Joined: Feb 10
2010-07-26, 16:14
OK so I found out the real bug:

I have this Setting

Left: Main Monitor - 2nd Monitor: Right
If I move pazaak to the 2nd screen it just works fine.

If i have

Left: 2nd Monitor - Main Monitor: Right
If i move pazaak now, it won't work.
If I switch the sides of both monitor in my screen settings but keep the settings which one is main and which one is 2nd it works just fine.

I don't know why this is happening and whos "fault" it is, but now you know about it ^^

DarthRevan
Joined: Nov 09
2010-10-13, 14:01
I asked a friend who has got 2-monitor setup. He can reproduce this bug and I tracked it down to the .NET function 'PointToClient'.

This function translates the coordinates of the mouse relative to the upper left of the screen to coordinates relative to the upper left of the window. It seems that on this particular 2-monitor setup, the coordinates are not correctly translated and therefore the mouse is not recognized being in the Pazaak Cantina window.

I cannot resolve this bug, but I hope, it will be changed in a later version of the .NET framework.
Alternatively, I will try to create my own 'PointToClient' function, if I am having too much spare time.
Developer of Pazaak Cantina.
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)