Re: [fpc-pascal] X, Y co-ordinate system under OS/2

2009-10-29 Thread Paul Nicholls
- Original Message - From: "Graeme Geldenhuys" To: "FPC-Pascal users discussions" Sent: Thursday, October 29, 2009 7:51 PM Subject: Re: [fpc-pascal] X, Y co-ordinate system under OS/2 On 29/10/2009, Juha Manninen wrote: If done right, the code doing coordina

Re: [fpc-pascal] X, Y co-ordinate system under OS/2

2009-10-29 Thread Graeme Geldenhuys
On 29/10/2009, Juha Manninen wrote: > > If done right, the code doing coordinate conversion should be in library > Canvas class, not in application code. That's how I would have implemented in it fpGUI as well. The higher level code uses x, y as normal. The drawing backend code does conversions

Re: [fpc-pascal] X, Y co-ordinate system under OS/2

2009-10-29 Thread Juha Manninen
Hi, > I'm making a simple GUI system for a game, and I needed to have screen > origin independant input coordinates for the GUI (simpler to think about > when using), and can be used in different world coordinate systems. If done right, the code doing coordinate conversion should be in library C

Re: [fpc-pascal] X, Y co-ordinate system under OS/2

2009-10-28 Thread Graeme Geldenhuys
2009/10/29 Paul Nicholls : > > I hope this helps? A little bit late, as I have done most of the drawing conversion already. But your post is still handy if I ever wanted to support OS/2 in fpGUI. A clever solution. I'll file your post for future reference - thanks. -- Regards, - Graeme - __

Re: [fpc-pascal] X, Y co-ordinate system under OS/2

2009-10-28 Thread Paul Nicholls
- Original Message - From: "Graeme Geldenhuys" To: "FPC-Pascal users discussions" Sent: Thursday, October 08, 2009 1:31 AM Subject: [fpc-pascal] X, Y co-ordinate system under OS/2 Hi, I'm porting an OS/2 application to Linux & Windows. From what I

Re: [fpc-pascal] X, Y co-ordinate system under OS/2

2009-10-08 Thread Graeme Geldenhuys
2009/10/7 Tomas Hajny : > > Yes, this is the case as far as I know (I haven't done any GUI programming > under OS/2 myself, but I know that this has always been one of the main > porting obstacles between Win32 and OS/2 at least). I suppose I can see the merits for using each of the co-ordinate sy

Re: [fpc-pascal] X, Y co-ordinate system under OS/2

2009-10-07 Thread Tomas Hajny
On Wed, October 7, 2009 16:31, Graeme Geldenhuys wrote: Hi, > I'm porting an OS/2 application to Linux & Windows. From what I can > see in the code, it looks like co-ordinates (0,0) is in the bottom > left corner of the screen. Whereas Windows and Linux, co-ordinates > (0,0) is in the Top Left

[fpc-pascal] X, Y co-ordinate system under OS/2

2009-10-07 Thread Graeme Geldenhuys
Hi, I'm porting an OS/2 application to Linux & Windows. From what I can see in the code, it looks like co-ordinates (0,0) is in the bottom left corner of the screen. Whereas Windows and Linux, co-ordinates (0,0) is in the Top Left of the screen. Is my assumption correct? If so, DAMN! This is go