Recent Posts

Pages: [1] 2 3 ... 10
1
Programming / Re: Dive: Why does not this work
« Last post by Dave Yeo on Today at 04:35:29 pm »
Code from Mozilla (widget\os2\nswindow.cpp #405), for querying whether the shadow buffer is enabled
Code: [Select]
  // Don't use DIVE if the Panorama video driver is in use
  // unless its shadow buffer is turned off.
  HMODULE hmod;
  if (!DosQueryModuleHandle("PANOGREX", &hmod)) {
    char      str[8];
    if (PrfQueryProfileString(HINI_USERPROFILE, "PANORAMA", "VBEShadowBuffer",
                              0, str, sizeof(str)) && !strcmp(str, "0")) {
      sUseDive = TRUE;
      printf("Video driver is Panorama - shadow-buffer is disabled\n");
    }
    else
      printf("DIVE is disabled - Panorama's shadow-buffer is enabled\n");

    return;
  }

  sUseDive = TRUE;
2
Programming / Re: Dive: Why does not this work
« Last post by Jochen Schäfer on Today at 02:52:58 pm »
Look at the OS/2 toolkit, in the "beehive" sample code (in that code you can ignore everything that centers around sprite creation. You can also ignore everything that centers around full screen DIVE unless you really want to do that, that includes loading GAMESVR [deprecated since Warp 4] or PMMERGE  Dive Fullscreen Init procedure).

I think you will need to support the WM_VRNDISABLED and WM_VRNENABLED window messages and use DiveAllocImageBuffer,DiveBlitImage,DivFreeImageBuffer. Note that the sample does the blitting from a secondary thread.
Yes, I do use the Dive functions, but WM_VRNDISABLED AND WM_VRNENABLED are not much use for me, since Classicube gives me the rectangles it wants to paint to, anyway. Moreover, SDL2 works without using the window messages, so it seems optional.

Also note that you cannot do "direct mode" when you are using Panorama with "Shadow Buffer Enabled". Since that is the setting that about 95% of all remaining OS/2 users will use, you should honour that.
How can I get the option?
3
Programming / Re: Dive: Why does not this work
« Last post by Lars on Today at 12:39:55 pm »
Look at the OS/2 toolkit, in the "beehive" sample code (in that code you can ignore everything that centers around sprite creation. You can also ignore everything that centers around full screen DIVE unless you really want to do that, that includes loading GAMESVR [deprecated since Warp 4] or PMMERGE  Dive Fullscreen Init procedure).

I think you will need to support the WM_VRNDISABLED and WM_VRNENABLED window messages and use DiveAllocImageBuffer,DiveBlitImage,DivFreeImageBuffer. Note that the sample does the blitting from a secondary thread.

Also note that you cannot do "direct mode" when you are using Panorama with "Shadow Buffer Enabled". Since that is the setting that about 95% of all remaining OS/2 users will use, you should honour that.

4
Programming / Re: Dive: Why does not this work
« Last post by Jochen Schäfer on Today at 09:52:13 am »
Well, using BGR3 or RGB3 as draw buffer doesn't change anything.
I still have only frame with the desktop background in it.
5
Applications / Re: LarsenCommander - new test version
« Last post by Andy Willis on Today at 02:36:15 am »
I have just downloaded it so I haven't had a chance to use it to say anything about it other than to thank you for your work on it. 
6
Programming / Re: Dive: Why does not this work
« Last post by Jochen Schäfer on April 19, 2024, 11:10:24 pm »
Ok, then I have to look how I get that to work.
7
Programming / Re: Dive: Why does not this work
« Last post by Flashback on April 19, 2024, 08:03:56 pm »
Take a look here. It seems that DIVE doesn't support blitting from 32bit source buffers. No matter what colour depth the screen is using. You may also want to check the return values of DiveSetupBlitter and DiveBlitImage.
8
Applications / Re: LarsenCommander - new test version
« Last post by Andi B. on April 19, 2024, 07:41:52 pm »
I've just uploaded v1.08.02 at https://sourceforge.net/projects/lcmd-git/files/

From the Readme -
Code: [Select]
Change History:
---------------
20240416 v1.8.2
- Improve EA handling routines to reduce memory leaks and silent crashes
- Fix TRAP 000e in JFS while copying >69000 files. Hint, please use latest ArcaOS (kernel, JFS, ACPI 3.23.17, ...)
- Removed gl16os2.dll dependency (link .obj into .exe)
- Handel out of memory conditions more gracefully
- Added abtrace for logging via pmprintf.dll (if available on target system)
- Improved build cmd files to break on error (ERRORLEVEL handling)
- Tuneed lxlite options to not remove bldlevel info
- Change to David G. icon files (no clue where they are used)
- Again tuning of dynamic copy buffer size adoption (even more speed on my system :-) )
- Change icons to the ones supplied by David G. Thanks for that although it's not clear to me where they are used.
(- Disable integrated exception handlers in favor of exceptq) reverted back
- Disabled ExceptQ handler as I can't get it to work in conjunction with lcmds own handlers

Bug reports please here - https://sourceforge.net/p/lcmd-git/tickets/

Of course I'll keep reading here as well from time to time. Have fun.

Btw. I've a really hard time to track down and reduce this terrible JFS traps when copying a lot of files. It seems to me that JFS still does not touch some memory pages when feed with >4k buffers some times which I guess leads to these 000e traps. Combined with the memory leaks which LCMD suffered when lot of files where copied I had uncountable crashes with long chkdsks afterwards. Now the I reduced memory need for extended attribute handling I can't see these memory leaks anymore with above512. But on some scenarios LCMD still seems to eat up some system resources which report out of memory. Closing LCMD will recover from such situations now.

If you encounter hangs of LCMD you may look at the lcmd.log file in the directory of lcmd.exe. F.i. tail -n 50 lcmd.log will show you the last messages which usually shows some exception infos. For this you've to enable 'Debug' or 'Test' in Help - Debug - Options. Be aware running LCMD with 'Debug' for a long time or while copying huge amount of files let lcmd.log become very big in minutes.

Btw. if you've pmprintf.dll on your system PmPrintf.exe will show you these messages from LCMD with 'Debug' or 'Test' enabled too.
9
Programming / Re: Bigicons
« Last post by David Graser on April 19, 2024, 05:36:24 am »
Fooled around with with a copper metallic theme.
10
Multimedia / Re: mplayer - just stopped working...sort of...
« Last post by Dariusz Piatkowski on April 19, 2024, 02:40:44 am »

3. What's the value of '2D Acceleration' ?


"YES" on my machine
Pages: [1] 2 3 ... 10