BetaArchive
https://www.betaarchive.com/forum/

Can Windows 1.0x have 256 colors?
https://www.betaarchive.com/forum/viewtopic.php?f=59&t=37962
Page 2 of 4

Author:  Overdoze [ Fri Jan 25, 2019 10:27 pm ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

John Elliott wrote:
I don't think you did send me any files. I've been working purely with IM1024.DRV from V1DSK.ZIP.


I sent you the files I recovered from a broken driver disk for IM640/1024/Cobra, in May last year. Contained drivers, diags, some code samples, I believe.

Author:  John Elliott [ Sat Jan 26, 2019 8:21 pm ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

Ah yes, I remember now. I don't think I managed to get anything helpful from the disks though.

Author:  roytam1 [ Mon Jan 28, 2019 8:06 am ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

Overdoze wrote:
John Elliott wrote:
I don't think you did send me any files. I've been working purely with IM1024.DRV from V1DSK.ZIP.


I sent you the files I recovered from a broken driver disk for IM640/1024/Cobra, in May last year. Contained drivers, diags, some code samples, I believe.

can I grab it elsewhere?

Author:  Overdoze [ Mon Jan 28, 2019 11:01 am ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

Not really, since the images were given to me directly by the owner of the floppies. But you can download the original broken images here, and the ones with files I managed to recover here.

Author:  roytam1 [ Mon Jan 28, 2019 3:59 pm ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

John Elliott wrote:
John Elliott wrote:
So without firmware dumps, what an emulator writer would have to do is a high-level emulation, parsing PGC-style commands written to the controller and translating them into drawing operations. And work out what all the extra commands are that are in the IM1024 but not the original PGC.


I think I can just about manage text, rectangles and the mouse pointer. Crashes more often than not, though, and visual glitches everywhere.

Image

Those are jolly big scrollbars. I wonder if they're like that on real hardware?

maybe font issue? im1024 uses bigger system font.

Author:  roytam1 [ Mon Jan 28, 2019 4:00 pm ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

Overdoze wrote:
Not really, since the images were given to me directly by the owner of the floppies. But you can download the original broken images here, and the ones with files I managed to recover here.


oh thanks. BTW there is a site that claims to have this set of disks, but requiring donation in order to download: www dot retrocomputing dot org/cgi-bin/sitewise.pl?act=det&pt=1028&p=1030&id=retroorg

Author:  Overdoze [ Mon Jan 28, 2019 5:28 pm ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

It's the same broken disk I got.

Author:  John Elliott [ Tue Feb 26, 2019 1:48 am ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

I haven't got round to filled polygons so the Calculator buttons don't draw, and though it's more stable I'm still getting lockups, but the IM1024 isn't looking too bad now:

Image

Author:  John Elliott [ Thu Feb 28, 2019 11:00 pm ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

OK, I think that's squashed all the crashes and visual glitches, or at least the ones I can find. PCEM patch submitted.

Let's have this one in the Windows 1.x standard colour scheme for a change:

Image

I think we can now say that the thread title has been answered: Yes, Windows 1.0x can have 256 colours.

Author:  roytam1 [ Fri Mar 01, 2019 4:32 am ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

John Elliott wrote:
OK, I think that's squashed all the crashes and visual glitches, or at least the ones I can find. PCEM patch submitted.

Let's have this one in the Windows 1.x standard colour scheme for a change:

Image

I think we can now say that the thread title has been answered: Yes, Windows 1.0x can have 256 colours.

Cool! Thanks for your effort!

Author:  Overdoze [ Fri Mar 01, 2019 8:56 am ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

Pretty amazing. I'll have to try this out soon. :)

Author:  ComputerHunter [ Fri Mar 01, 2019 10:13 am ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

Is it done? Where can I download the PCEM patch?

Author:  roytam1 [ Fri Mar 01, 2019 12:46 pm ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

ComputerHunter wrote:
Is it done? Where can I download the PCEM patch?

https://pcem-emulator.co.uk/phpBB3/view ... 816#p11816
you have to patch it manually and recompile

Author:  John Elliott [ Fri Mar 01, 2019 11:32 pm ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

If you downloaded my 'final' patch, it turned out to be not so final - I've now done another one which fixes various issues (one of which was visible on my last screenshot; the BULLSEYE test app shouldn't have had those white outlines).

Most of the other fixes were to support Micrografx In*a*Vision, which hammers the polygon functionality pretty hard:
Image

Author:  Battler [ Sat Mar 02, 2019 3:54 pm ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

The colors of the scroll bar buttons seem to be inverted compared to those in a magazine screenshot, is this normal?

Author:  John Elliott [ Sat Mar 02, 2019 6:57 pm ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

The resource bitmaps are inverted compared to those in the other Windows 1.03 drivers I've seen. For example, bitmap 1 is the right scrollbar arrow, and in the EGA driver it's like this:
Code:
Version: 0x0002
Type: 0x0000
Width: 0x0014
Height: 0x000d
BitmapW: 0x0004
Depth: 0x01
Planes: 0x01
Reserved: 0x00000000
Bitmap: #################### \
        #################### \
        ###########-######## \
        ###########--####### \
        ###########---###### \
        ####-----------##### \
        ####------------#### \
        ####-----------##### \
        ###########---###### \
        ###########--####### \
        ###########-######## \
        #################### \
        ####################

In IM1024.DRV it looks like this:
Code:
Version: 0x0002
Type: 0x0000
Width: 0x0024
Height: 0x0018
BitmapW: 0x0006
Depth: 0x01
Planes: 0x01
Reserved: 0x00000000
Bitmap: ------------------------------------ \
        ------------------------------------ \
        ----------------##------------------ \
        ----------------####---------------- \
        ----------------######-------------- \
        ----------------########------------ \
        ----------------##########---------- \
        ----------------############-------- \
        --############################------ \
        --##############################---- \
        --################################-- \
        --################################## \
        --################################## \
        --################################-- \
        --##############################---- \
        --############################------ \
        ----------------############-------- \
        ----------------##########---------- \
        ----------------########------------ \
        ----------------######-------------- \
        ----------------####---------------- \
        ----------------##------------------ \
        ------------------------------------ \
        ------------------------------------

Author:  ComputerHunter [ Sun Mar 03, 2019 9:43 am ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

I never used .patch file and I can't even find the source code... Could somebody please upload a compiled version or the full patched source code.

Author:  AlejHerrBar2k3 [ Sun Mar 03, 2019 5:48 pm ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

ComputerHunter wrote:
I never used .patch file and I can't even find the source code... Could somebody please upload a compiled version or the full patched source code.


We can't discuss nor provide links to source code on BetaArchive.

Author:  Battler [ Sun Mar 03, 2019 7:29 pm ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

We certainly can discuss and provide links to source code of open-source programs such as PCem, 86Box QEmu, Bochs, DOSBox, etc. The prohibition concerns leaked source codes of proprietary products.

Author:  TheCollector1988 [ Sun Mar 03, 2019 9:15 pm ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

John Elliot, Write.exe seems to be heavily messed up with this driver or does the emulation need more work for it?

Author:  John Elliott [ Sun Mar 03, 2019 11:40 pm ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

Write worked for me, but I only had the system font installed. Installing the other fonts sends things haywire - the instruction stream loses sync at a TDEFIN.

Ah, I've got the 'rows' and 'columns' parameters round the wrong way, so it can't cope with characters that aren't square :$

Regarding PCEM: Although the GPL allows it, Sarah Walker has asked that development builds shouldn't be made publicly available. So if you can't build it from source yourself you're a bit stuck.

There's a build guide for MSYS2 here. Once you've got it building from source, you should be able to install patch:

Code:
pacman -S patch

and then run it on the tree:
Code:
patch -p1 < im1024_4.patch

Author:  ComputerHunter [ Mon Mar 04, 2019 8:48 am ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

Is there a Visual Studio 2008 version? I don't know how to compile anything else and makes it impossible without the source code... I don't even know what language is it in without even having a look at the source code and I bet it can't be compiled through Visual Studio 2008.

If it is for Visual Studio 2013 or 2017, I can't compile either because I don't have that version and can't afford to download 10 GB thing just for compiling an app.

Author:  Overdoze [ Sat Mar 16, 2019 7:04 pm ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

John Elliott wrote:
Write worked for me, but I only had the system font installed. Installing the other fonts sends things haywire - the instruction stream loses sync at a TDEFIN.

Ah, I've got the 'rows' and 'columns' parameters round the wrong way, so it can't cope with characters that aren't square :$


Not sure if you already knew this, but the Device Driver Library disk 1 that contains the IM1024 driver also has a specific font for it, VMILO.FON. When you replace the default LOFONTS.FON file with it and install Windows with the IM1024 driver, you get this:

ImageImage

I guess the text is meant to be larger, which matches the photo in PC Mag, but the characters themselves aren't actually scaled. I'm not sure if this is an issue with my particular environment (config+driver) or emulation? For some reason, only disabled text is scaled like one would expect.

EDIT: I've tried to add some test programs into the disk image, and that apparently broke it further, now no text (other than the scaled disabled one) is rendering at all.

Author:  John Elliott [ Tue Mar 19, 2019 2:00 am ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

Looking at the logs, it's not trying to define the font bitmaps, and it's drawing text using command 88h. Hypothesis: that font is assumed to be defined by the IM1024's ROM and doesn't need loading with TDEFIN. Therefore letters only get drawn when the software rendering path is used (for example, for greyed text).

So first task is to get the bitmaps out of VMILO.FON and into PCEM...

Author:  John Elliott [ Tue Mar 19, 2019 3:04 am ]
Post subject:  Re: Can Windows 1.0x have 256 colors?

New patch submitted. And with the 12x18 system font, the scrollbars now don't look oversized:

Image

Page 2 of 4 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/