Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Dave Yeo

Pages: [1] 2 3 ... 290
1
Programming / Re: Compiling a PM sample with GCC (2023)
« on: June 06, 2023, 02:30:12 am »
Tested here with 16m colours, same results as you except one of the options, Dive Blitter I think it was, froze the system and after 10-15 seconds crashed,
Code: [Select]
06-05-2023  16:08:07  SYS3175  PID 0065  TID 0003  Slot 0080
H:\TMP\SHOW_DIVE_B1\SHOW.EXE
c0000005
1fe22505
P1=00000001  P2=00000000  P3=XXXXXXXX  P4=XXXXXXXX
EAX=02a83880  EBX=00000000  ECX=00000140  EDX=00000500
ESI=00000000  EDI=02a83880
DS=0053  DSACC=d0f3  DSLIM=9fffffff
ES=0053  ESACC=d0f3  ESLIM=9fffffff
FS=150b  FSACC=00f3  FSLIM=00000030
GS=0000  GSACC=****  GSLIM=********
CS:EIP=005b:1fe22505  CSACC=d0df  CSLIM=9fffffff
SS:ESP=0053:03271f20  SSACC=d0f3  SSLIM=9fffffff
EBP=03271ff4  FLG=00010202

LIBCN0.DLL 0001:00082505

Perhaps Lars has an idea.

2
Events / Re: ArcaOS 5.0.8 is out!
« on: June 05, 2023, 09:32:05 pm »
Hi Holger, IIRC, it will give a warning about unsupported kernel but work.

Hi Eugene, sounds like you have to install some stuff with ANPM, though TB should have all its prerequisites. Anything in popuplog.os2

3
Programming / Re: Compiling a PM sample with GCC (2023)
« on: June 05, 2023, 04:26:42 pm »
Yes, changing the DosSleep() to one at line 339 fixes the speed, about 33 frames/sec and can see the airplane on this 4 core I5.

4
Programming / Re: Compiling a PM sample with GCC (2023)
« on: June 05, 2023, 07:36:57 am »
Works fine here. I did have to adjust your compile.cmd (and a previous one) to be more portable. Basically changed all C: to %UNIXROOT%, which is W: here. Your binary also worked here
Do you have C:\mmos2\dll\dive.dll and is it on your libpath? I'm also running 64K colours if that makes a difference. What does Options-->Query Caps show?
BTW, the program really need slowing down on modern hardware, I'm getting over 18000 frames a second. It looks irritating.

5
Events / Re: ArcaOS 5.0.8 is out!
« on: June 05, 2023, 01:31:31 am »
Hi Holger, the versions of Panorama and Doodles Screensaver in 5.0.8 support DPMS to turn off the screen

6
Web applications / Re: Dooble releases, Qt5 builds
« on: June 05, 2023, 01:24:37 am »
Hi Holger, on the new install, did you also have a new Home directory? If so, you've done the equivalent of creating a new profile.
Get a crash/freeze at the wrong time and the profile could get corrupted.
BTW, I added lite.qwant.com to my Dooble program object. When starting, it takes a surprising amount of time to load, but does load. Nice search engine

7
Events / Re: ArcaOS 5.0.8 is out!
« on: June 03, 2023, 01:03:59 am »
The kernel has some memory fixes, mostly for certain UEFI systems with fragmented memory IIRC.

8
Programming / Re: Compiling a PM sample with GCC (2023)
« on: June 02, 2023, 05:51:35 pm »
I change the jigsaw.res rule to,
Code: [Select]
jigsaw.res: jigsaw.rc jigsaw.h jigsaw.ico jighelp.rc jigsaw.dlg
        wrc -r jigsaw.rc jighelp.rc
Based on JIGSAW.MAK.
I think it is to help open the help at the correct spot

9
Web applications / Re: Dooble releases, Qt5 builds
« on: June 02, 2023, 04:34:29 pm »
it is recommended to remove the existing .dooble directory before the new installation, right?

You shouldn't have to, though one report of needing to clear some cookies. If for some reason sites stop working, you can try removing .dooble

10
Programming / Re: Compiling a PM sample with GCC (2023)
« on: June 02, 2023, 05:52:44 am »
According to the Presentation Manager Programming Guide, sRgnType should be a long.
Code: [Select]
This call obtains an update region of a window.


#define INCL_WINWINDOWMGR /* Or use INCL_WIN, INCL_PM, */
#include <os2.h>

HWND    hwnd;         /*  Handle of window whose update region is to be queried. */
HRGN    hrgn;         /*  Handle of the window's update region. */
LONG    lComplexity;  /*  Complexity of resulting region/error indicator. */

lComplexity = WinQueryUpdateRegion(hwnd, hrgn);

It's like the rc in a previous example, there could be "Complexity of resulting region/error indicator"  checking later or can look at the variable in a debugger.
Considering the documentation shows the syntax shows using a variable like sRgnType, I'd leave it in even if it didn't hurt to remove it.

11
Programming / Re: Compiling a PM sample with GCC (2023)
« on: June 02, 2023, 01:44:41 am »
Hi Dave

You are right. I found an issue in my config.sys. I had a wipfc mess there.

Now it generates the .hlp and works, I also got the:
"<hanoi.ipf:125:1> Warning 31: Unable to find the id or name for this reference..."
..etc.

Regards

Probably should compare the wipf and ipfc help files. Wipf isn't 100% compatible and those warning might mean something. Not that it matters much with these example programs

12
Programming / Re: Compiling a PM sample with GCC (2023)
« on: June 01, 2023, 04:47:39 pm »
Here, I got,
Code: [Select]
wipfc hanoi.ipf
Open Watcom OS/2 Help Compiler Version 2.0beta1 Limited Availability
Copyright (c) 2010 Open Watcom Contributors. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
<hanoi.ipf:125:1> Warning 31: Unable to find the id or name for this reference
<hanoi.ipf:133:1> Warning 31: Unable to find the id or name for this reference
<hanoi.ipf:141:1> Warning 31: Unable to find the id or name for this reference
<hanoi.ipf:149:1> Warning 31: Unable to find the id or name for this reference
<hanoi.ipf:157:1> Warning 31: Unable to find the id or name for this reference
<hanoi.ipf:165:1> Warning 31: Unable to find the id or name for this reference
and a hanoi.hlp file.
Note that I had to install watcom-wipfc with ANPM and it wanted a reboot before it worked. It added
Code: [Select]
SET WIPFC=W:\usr\share\os2\wipfcto my config.sys.
Using ipfc, I see the warning,
Code: [Select]
Compiling document with following Country Code, Code Page:
1, 850

<hanoi.ipf:167> Warning 208: Missing tag [euserdoc]

Also I had to comment out this, as prodinfo.bmp is missing
Code: [Select]
/* BITMAP IDR_BITMAP "..\\prodinfo.bmp"*/

13
Programming / Re: Compiling a PM sample with GCC (2023)
« on: May 31, 2023, 06:04:23 pm »
It's weird, supposed to show the help with no parameters,
Code: [Select]
int main ( int argc, char *argv[] )
   {
   HFILE hFile;
   ULONG ulNumBytes, ulFileLength;
   PBYTE pbImageBottom, pbBMP;
   ULONG rc;
   PBITMAPFILEHEADER2 pbmfHeader;

   /* Check the number of command line arguments.                            */
   if ( argc != 2 )
      {
      printf ( "usage: SHOW filein.bmp\n" );
      printf ( "   Jams ab 8-bit bitmap image directly to the upper\n" );
      printf ( "   left corner of the screen.  Clipping is not exemplified.\n" )
;
      printf ( "   Note this code example works only if:\n" );
      printf ( "      1) SMVDD.SYS is installed propery in four CONFIG.SYS\n" );
      printf ( "         (You can get this from the MMPM/2 install disks), and\n" );
      printf ( "      2) Your adapter has an aperture enabled, and\n" );
      printf ( "      3) Your adapter is in 8, 16, or 24 bit bit color mode, and\n" );
      printf ( "      4) Your bitmap is 8-bit only (i.e. this does no color conv
ersion).\n" );
      return ( 0 );
      }

Looks like it also depends on SMVDD.SYS, which I don't see on my system

14
Programming / Re: Qt6 Development
« on: May 31, 2023, 02:54:50 am »
Perhaps something like,
Code: [Select]
--- a/src/ext/x86/x86inc.asm
+++ b/src/ext/x86/x86inc.asm
@@ -85,7 +85,9 @@
 %endif

 %macro SECTION_RODATA 0-1 16
-    %ifidn __OUTPUT_FORMAT__,win32
+    %ifidn __OUTPUT_FORMAT__,aout
+        SECTION .text
+    %elif __OUTPUT_FORMAT__,win32
         SECTION .rdata align=%1
     %elif WIN64
         SECTION .rdata align=%1

Code still might need patching for alignment.

15
Programming / Re: Qt6 Development
« on: May 31, 2023, 12:44:02 am »
Wonder about building it in aout mode, -f aout? Nice and simple, x86inc.asm should have the macros and should only take minor patching following whatever Mach does. Should work fine if only LDFLAGS has -Zomf for a standalone DLL.
Which source did you use, I might try

Pages: [1] 2 3 ... 290