Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to index page
Thread view  Board view
marcov

08.01.2009, 22:36
 

Small favour to ask (FPC bugreport) (Developers)

I'm trying to clear FPC bugreporting backlog again, and found something that is maybe easily fixable. Could sb have a look at http://bugs.freepascal.org/view.php?id=5523?

Basically it is simply testing if the mouse moves in the dos FPC ide (preferably a recent, 2.2.2 one, preferably on Dos 6.22 or 7).

EDIT by rr: reformatted link

Laaca

Homepage

Czech republic,
10.01.2009, 10:00

@ marcov
 

Small favour to ask (FPC bugreport)

In FPC 2.2.2 is this issue partialy fixed.
If IDE starts in resolution 80x25 everything is fine. But if it starts in another resolution, like 80x50 (so the mode switch from 80x25 must be performed) mouse cursor is hidden.
The same problem appears when you in IDE in mode choose dialog change the resolution.

It is bad that IDE sources are rather a mess because it doesn't always use the terminal (VIDEO, MOUSE and KEYBOARD) units and on some places it use own variants of these routines. (So if you fix some bug in terminal units it doesn't always fix the IDE)

Some attention should be paid to "speed" of FreeVision, especially reactions to mouse actions. Did you try to select some block of text by mouse?
And why the copying and pasting of the selected text is so slow? (Here is strange that it in FreeDOS it is significantly slower than in MS-DOS 7.1 or in Windows98 - I don't know why)

And the chronical pain is the Graph unit for DOS. There are some steps backwards in FPC 2.x.x
Source of Graph unit from FPC 1.0.10 can however still be after few changes compiled and used in FPC 2.x.x but you have to set the calling convention into OLDFPCCALL.

---
DOS-u-akbar!

marcov

10.01.2009, 13:56

@ Laaca
 

Small favour to ask (FPC bugreport)

> In FPC 2.2.2 is this issue partialy fixed.
> If IDE starts in resolution 80x25 everything is fine. But if it starts in
> another resolution, like 80x50 (so the mode switch from 80x25 must be
> performed) mouse cursor is hidden.

Hmm. If you initialize 80x50 yourself, and initialize the mouse with interrupts, does the cursor show them?

Or maybe it is simply that the video mode is initialize after the mouse is shown. I'll add that to the bugreport.

> The same problem appears when you in IDE in mode choose dialog change the
> resolution.

That's a strong pointer that it might be the order of initialization problem.

I tried, and I can reproduce it with go32v2 on XP if I set the dosbox to fullscreen mode.

So forget about the remark in the bugreport. Probably not a mouse driver then.

> It is bad that IDE sources are rather a mess because it doesn't always use
> the terminal (VIDEO, MOUSE and KEYBOARD) units and on some places it use
> own variants of these routines. (So if you fix some bug in terminal units
> it doesn't always fix the IDE)

Those are mostly old bugfixes to improve behaviour on some platforms.

> Some attention should be paid to "speed" of FreeVision, especially
> reactions to mouse actions. Did you try to select some block of text by
> mouse?

Here it is immediate, I don't notice a delay.

> And why the copying and pasting of the selected text is so slow? (Here is
> strange that it in FreeDOS it is significantly slower than in MS-DOS 7.1
> or in Windows98 - I don't know why)

That's odd. Unit video should write directly to screen. Maybe FreeDOS tries to virtualize the screen?

> And the chronical pain is the Graph unit for DOS. There are some steps
> backwards in FPC 2.x.x
> Source of Graph unit from FPC 1.0.10 can however still be after few
> changes compiled and used in FPC 2.x.x but you have to set the calling
> convention into OLDFPCCALL.

1.0.10 is dead. Period. If you know the problems, please enter bugreports.

Keep in mind I can't test on pure dos. Soon, even testing dos under XP will require a reboot. (at work we are doing more and more in 64-bit, and I work at home a lot).

Laaca

Homepage

Czech republic,
10.01.2009, 16:45

@ marcov
 

Small favour to ask (FPC bugreport)

Between FPC 2.2.2RC2 and FPC 2.2.2 final I described the mouse hidding bug in bugtracker and even wrote a fix.
http://bugs.freepascal.org/view.php?id=11699
Unfortunately it seems that it wasn't included into main trunk :-(

> I tried, and I can reproduce it with go32v2 on XP if I set the dosbox to
> fullscreen mode.
>
> So forget about the remark in the bugreport. Probably not a mouse driver
> then.

:confused: I didn't understand :confused:

I am considering to patch and improve the unit Graph because I have some experience from work on my VenomGFX - well, we will see...

Complete removing the banked modes isn't a good idea because it is the only mode usable under Windows XP.


BTW:
I think that best environment for developping the DOS version is except DOS and Windows 9x not Windows XP but Linux with DOSEMU.

---
DOS-u-akbar!

marcov

10.01.2009, 17:00

@ Laaca
 

Small favour to ask (FPC bugreport)

> Between FPC 2.2.2RC2 and FPC 2.2.2 final I described the mouse hidding bug
> in bugtracker and even wrote a fix.
> http://bugs.freepascal.org/view.php?id=11699
> Unfortunately it seems that it wasn't included into main trunk :-(
>
> > I tried, and I can reproduce it with go32v2 on XP if I set the dosbox
> to
> > fullscreen mode.
> >
> > So forget about the remark in the bugreport. Probably not a mouse
> driver
> > then.
>
> :confused: I didn't understand :confused:

My comment in the bugtracker refered to problems in the mousedriver. This was due some problem a long time ago that certain mousedrivers didn't function in non standard modes.

> I am considering to patch and improve the unit Graph because I have some
> experience from work on my VenomGFX - well, we will see...

> Complete removing the banked modes isn't a good idea because it is the
> only mode usable under Windows XP.

Trouble is that graph is not dos only. Moreover go32v2 on NT based systems was never supposed to be supported. It just gradually evolved over time to a halfwhat usable state.

However nobody is maintaining graph, and as long as you keep it generically usable and backwards TP compat, nobody will mind. IIRC the banked mode were not cut, but just not added at the start, and it was said "they can be added later"

> BTW:
> I think that best environment for developping the DOS version is except
> DOS and Windows 9x not Windows XP but Linux with DOSEMU.

My next install of Linux will be x86_64 too probably. I'm actually currently download Fedora10/x86_64, since I'm going to reinstall my laptop next week.

Assuming that dosemu actually minds that (and doesn't slow down too much). Keep in mind that cycling a FPC release takes a lot of time in emulated environments. (it takes 1-2m on a core2 linux machine)

Laaca

Homepage

Czech republic,
10.01.2009, 10:08

@ marcov
 

Small favour to ask (FPC bugreport)

Few days ago I uploaded my unit for control audio CD-ROM in DOS. (contributed units -> miscellaneous units)

I know that similar units exist for Windows and Linux. Maybe somebody could look at it and create a multiplatform unit for all three platforms (DOS, Windows, Linux)

---
DOS-u-akbar!

DOS386

12.01.2009, 14:10

@ marcov
 

Small favour to ask (FPC bugreport) DONE !

> trying to clear FPC bugreporting backlog again, and found something that is
> maybe easily fixable. Could sb have a look at http://bugs.freepascal.org/view.php?id=5523

done! (3 months ago)

---
This is a LOGITECH mouse driver, but some software expect here
the following string:*** This is Copyright 1983 Microsoft ***

Back to index page
Thread view  Board view
22049 Postings in 2034 Threads, 396 registered users, 272 users online (0 registered, 272 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum