Search found 130 matches

by shermanp
Wed 12 Feb, 2020 2:01 am
Forum: Development
Topic: Dot-matrix printing in PCem
Replies: 14
Views: 1156

Re: Dot-matrix printing in PCem

Oh, hadn't thought about creating italics from standard fonts. Mainly because my font experience comes from the ebook sphere, and IMHO, autogenerated italics is a crime against humanity. (I had to suffer this in the early days of epub, because Adobe and/or Sony were too cheap to include italics vari...
by shermanp
Sat 08 Feb, 2020 10:43 pm
Forum: Development
Topic: Dot-matrix printing in PCem
Replies: 14
Views: 1156

Re: Dot-matrix printing in PCem

Yeah, stuff like line height can be modified. But stuff like negative left bearings is quite normal, especially for proportional fonts. Use the metrics to determine WHERE to place glyphs. Just don't rely on them to determine your buffer sizes. If you end up using STB_Truetype, you should be safe to ...
by shermanp
Sat 08 Feb, 2020 9:48 pm
Forum: Development
Topic: Dot-matrix printing in PCem
Replies: 14
Views: 1156

Re: Dot-matrix printing in PCem

I don't know how much experience you have rendering fonts, but one thing I learned was: don't trust the fonts own metrics. I once made that mistake. The code worked properly with the fonts I was using. Someone else tested with broken font metrics, and started getting segfaults. I quickly learned tha...
by shermanp
Mon 03 Feb, 2020 11:50 am
Forum: Development
Topic: Dot-matrix printing in PCem
Replies: 14
Views: 1156

Re: Dot-matrix printing in PCem

Are you just using Freetype for font rasterization? If so, another potential font rasterizer is [url]https://github.com/nothings/stb/blob/master/stb_truetype.h[/url]. It's a portable, single-header opentype font rasterizer library. I've used it to create a rudimentary text layout program on an eink ...
by shermanp
Mon 06 Jan, 2020 6:56 pm
Forum: General
Topic: v15 released!
Replies: 49
Views: 25103

Re: v15 released!

And unfortunately, it's not a simple fix (otherwise it probably would have been done already!). Actually, it can be! All you need to do is allow unicode in the dialog (which I guess is what standard Windows Dialogs will give you anyway) and then apply the Windows API to turn that into a DOS-compati...
by shermanp
Mon 06 Jan, 2020 6:45 am
Forum: General
Topic: v15 released!
Replies: 49
Views: 25103

Re: v15 released!

Finally gotten around to upgrading. (I've not been active for a while on account of dealing with heart failure and the fitting of a pacemaker). I've noticed a "bug" that's probably been around for a while, and this prompted me to update to v15. However the bug is still there. PCem does not cope wit...
by shermanp
Sun 05 Jan, 2020 7:51 pm
Forum: Development
Topic: Bitbucket deleting all Mercurial repositories on June 1, 2020?
Replies: 12
Views: 1813

Re: Bitbucket deleting all Mercurial repositories on June 1, 2020?

Personally, I'd be inclined to move the repo to GitHub, but hey, I'm biased as that is what I use for my own projects. Also never could really figure mercurial out.

But at the end of the day, it's your project, so I'll work with whatever you decide to do.
by shermanp
Sun 05 Jan, 2020 10:30 am
Forum: Development
Topic: Bitbucket deleting all Mercurial repositories on June 1, 2020?
Replies: 12
Views: 1813

Re: Bitbucket deleting all Mercurial repositories on June 1, 2020?

Oh my. Some very unhappy developers... https://community.atlassian.com/t5/Bitbucket-articles/What-to-do-with-your-Mercurial-repos-when-Bitbucket-sunsets/ba-p/1155380 I don't know why. It's not like BitBucket are going to delete issues, pull requests and wikis. And they're providing an automated tool...
by shermanp
Sat 27 Jul, 2019 9:41 pm
Forum: Development
Topic: Compiling PCem for Windows from Windows Subsystem for Linux with Ubuntu
Replies: 2
Views: 1938

Re: Compiling PCem for Windows from Windows Subsystem for Linux with Ubuntu

You'll probably want OpenAL-Soft. It is a CMAKE project.

OpenAL-Soft seems to provide a toolchain file for cross-compiling with MinGW-w64 at https://github.com/kcat/openal-soft/blo ... ompile.txt.

Does this help?
by shermanp
Fri 24 May, 2019 11:10 am
Forum: Patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 17
Views: 8975

Re: [Patch] New VHD support... now with added dynamics

altheos wrote:
Fri 24 May, 2019 10:14 am
Hi,

I can't apply your patch against a stock v14 : do you have a compatible version of your patch ?

Regards.
Sorry, not at the moment. I need to rebase the patch on V15, and I'm not really in a PCem frame of mind at the moment, so it could be a wee while yet.
by shermanp
Wed 24 Apr, 2019 10:22 pm
Forum: Development
Topic: v15 & new recompiler update
Replies: 86
Views: 34888

Re: v15 & new recompiler update

BTW, compiled for me fine on MinGW-w64 with GCC 7.2

It looks like Sarah added some makefile fixes not too long ago at commit 51e4eb5, is that the problem?
by shermanp
Wed 24 Apr, 2019 10:19 pm
Forum: Development
Topic: v15 & new recompiler update
Replies: 86
Views: 34888

Re: v15 & new recompiler update

The makefile does have an absolute path to a mingw install for Wx. other than that, it compiles fine (for gcc 4.7.2 win32 anyway) It always has. Thankfully you can override make variables on the command line, so I've got a batch file that points to the location of my WX install. I started to try an...
by shermanp
Mon 22 Apr, 2019 5:06 am
Forum: Patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 17
Views: 8975

Re: [Patch] New VHD support... now with added dynamics

This patch would be awesome for v15, but it's not ready yet, right? I'm working on it! Hope to have it ready by the feature freeze, but no guarantees. Nope, wasn't able to get it working in time I'm afraid. Currently scratching my head over why Windows (or Hyper-V) doesn't like my differencing VHD....
by shermanp
Sun 21 Apr, 2019 11:56 pm
Forum: Patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 17
Views: 8975

Re: [Patch] New VHD support... now with added dynamics

This patch would be awesome for v15, but it's not ready yet, right? I'm working on it! Hope to have it ready by the feature freeze, but no guarantees. Nope, wasn't able to get it working in time I'm afraid. Currently scratching my head over why Windows (or Hyper-V) doesn't like my differencing VHD....
by shermanp
Thu 18 Apr, 2019 9:11 pm
Forum: Patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 17
Views: 8975

Re: [Patch] New VHD support... now with added dynamics

seth wrote:
Thu 18 Apr, 2019 7:26 pm
This patch would be awesome for v15, but it's not ready yet, right?
I'm working on it! Hope to have it ready by the feature freeze, but no guarantees.
by shermanp
Wed 03 Apr, 2019 9:07 pm
Forum: Patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 17
Views: 8975

Re: [Patch] New VHD support... now with added dynamics

It does support multi-parent chains. But I was thinking more about your comment about the handling of file paths and text encodings. As far as I can tell, the Dosbox-X implementation uses no external libraries for that, and it does it with a pretty small amount of code. Also, for the purposes of PC...
by shermanp
Tue 02 Apr, 2019 10:35 pm
Forum: Patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 17
Views: 8975

Re: [Patch] New VHD support... now with added dynamics

Might it be helpful to look at how VHDs are implemented in Dosbox-X? https://github.com/joncampbell123/dosbox-x/blob/master/src/ints/bios_vhd.cpp Interesting, I hadn't seen that before. After a (very) brief look at the code, I think my implementation will be more complete. For example, the DosBox-X...
by shermanp
Mon 18 Mar, 2019 3:24 am
Forum: Patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 17
Views: 8975

Re: [Patch] New VHD support... now with added dynamics

This is a very useful addition! I just managed to apply the patch and compile the emulator. I did some quick tests with a VHD hardfile and it seems to work fine, from now on I will probably only use VHD files. If it's possible to include it in the next official release that would be great, it has m...
by shermanp
Wed 23 Jan, 2019 6:20 am
Forum: General
Topic: Wordbasic overflow error 6 with DX processor
Replies: 5
Views: 3321

Re: Wordbasic overflow error 6 with DX processor

I'm not an expert by any means, but I believe that PCem doesn't accurately emulate the full 80-bit precision of the floating point co-processor. Word is probably sensitive enough to detect the inaccuracy, or it's doing something to make the PCem FPU emulation trip up. As, I said, I'm no expert, just...
by shermanp
Tue 08 Jan, 2019 8:01 pm
Forum: General
Topic: PCem requests for a Win9x Project
Replies: 9
Views: 4146

Re: PCem requests for a Win9x Project

Hi, As stated, I have have been creating VHD support for PCem. I think I have dynamic images pretty well sorted, and I'm currently trying to get differencing support working (reading works, but I haven't got creation support yet, nor any of the parent/child integrity checks). The original VHD format...
by shermanp
Fri 04 Jan, 2019 8:29 pm
Forum: Development
Topic: [Feb 2018 ed.] PCem MSYS2 build guide (with wxWidgets)
Replies: 57
Views: 26552

Re: [Feb 2018 ed.] PCem MSYS2 build guide (with wxWidgets)

MSYS2 is a Windows build environment Please forgive my silly question, I saw all those $ shell commands that looked like linux That's because MSYS2 is basically a stripped down linux distribution (Arch I believe) compiled to run on windows. It contains a linux shell, package manager, and all the *n...
by shermanp
Wed 02 Jan, 2019 2:47 am
Forum: General
Topic: VHD support
Replies: 72
Views: 30603

Re: VHD support

EDIT: I deleted the contents of this post, because I realized I had made a colossal arse of myself. Turns out, the bitmap macros I was using were incorrect for VHD's (the order was reversed). This mistake will also explain why I've been having so much trouble with differencing VHD's, as they rely ex...
by shermanp
Mon 31 Dec, 2018 1:09 am
Forum: General
Topic: VHD support
Replies: 72
Views: 30603

Re: VHD support

I mean, well, once it has installed win95 and rebooted (after the whole setup routine), for now, it's fine, but once adding one file (as little as 32kb for example) in the vhd (after closing PCem), it would result in some files (not all) missing like vwin32.vxd, etc, thus, corrupting and making win...
by shermanp
Sun 30 Dec, 2018 7:04 pm
Forum: General
Topic: VHD support
Replies: 72
Views: 30603

Re: VHD support

Your latest patch solves my issue, thanks! Edit: At least, just partially, attempting to add files from winimage or mounted through imdisk results in missing other files or corruption again. Siigh... maybe something a little less subtle is required. Are you able to provide a detailed step-by-step o...
by shermanp
Sun 30 Dec, 2018 10:44 am
Forum: General
Topic: VHD support
Replies: 72
Views: 30603

Re: VHD support

So I went ahead and implemented some sector bitmap handling. It basically does nothing on reads, but updates the sector bitmap if required on writes. At least that's what I INTEND it to do... Whether I've done it correctly or not... I've attached a test patch, which can be applied on top of my V4 pa...
by shermanp
Sun 30 Dec, 2018 1:44 am
Forum: General
Topic: VHD support
Replies: 72
Views: 30603

Re: VHD support

I think I can see what a potential issue MIGHT be. Unlike Windows (10) and MiniVHD, Winimage actually appears to use the sector bitmap for sparse images. This COULD lead to a potential issue where Injecting a file into the image via Winimage creates a new block with some sectors marked clean. MiniVH...
by shermanp
Sat 29 Dec, 2018 9:31 pm
Forum: General
Topic: VHD support
Replies: 72
Views: 30603

Re: VHD support

I'm going to have a closer look at this. There may be some funny business going on with Winimage. I say may, because the first thing I tried with Winimage had a problem, but subsequent uses have behaved themselves. Will try with a blank fresh VHD image to see what winimage is doing, hopefully I can ...
by shermanp
Sat 29 Dec, 2018 8:54 pm
Forum: General
Topic: VHD support
Replies: 72
Views: 30603

Re: VHD support

Just trying to narrow down whether it's a bug with my VHD code, or a bug with Winimage.
by shermanp
Sat 29 Dec, 2018 7:58 pm
Forum: General
Topic: VHD support
Replies: 72
Views: 30603

Re: VHD support

SA1988 wrote:
Sat 29 Dec, 2018 12:01 pm
Nice patch! However, I found a bug in this patch. The bug is about when win95's first phase setup is finished, opening a dynamic/sparse vhd to view files with winimage results in a corrupt/blank vhd (with winimage).
Does this bug happen with Windows created dynamic VHD's as well?
by shermanp
Tue 25 Dec, 2018 11:54 pm
Forum: Development
Topic: [Feb 2018 ed.] PCem MSYS2 build guide (with wxWidgets)
Replies: 57
Views: 26552

Re: [Feb 2018 ed.] PCem MSYS2 build guide (with wxWidgets)

I've updated the original guide to hopefully make it clearer that one needs to switch shells from the "Prepare and Compile PCem" step onward.