Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
Programming / Re: Dive: Why does not this work
« Last post by Jochen Schäfer on April 21, 2024, 03:22:49 am »
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;
Thanks.
22
Programming / Re: Dive: Why does not this work
« Last post by Flashback on April 21, 2024, 12:15:55 am »
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.
Really? Does it correctly handle the situation when the application window is partly obscured by another desktop window?
23
Applications / Re: LarsenCommander - new test version
« Last post by roberto on April 20, 2024, 08:54:18 pm »
Hello
Thank you very much for your effort.
 I have a little problem that is very annoying to me.
  Let me explain:
When I have the lcmd open and on top of that I have the editor e.exe open
 I MOVE my mouse over the number 10 Exit button. A yellow bar lights up.
 And when I move the mouse over the editor, at the scroll bar, when you click on the scroll bar of the editor,
  the Lcmd closes.
Saludos
24
Programming / Re: Dive: Why does not this work
« Last post by Dave Yeo on April 20, 2024, 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;
25
Programming / Re: Dive: Why does not this work
« Last post by Jochen Schäfer on April 20, 2024, 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?
26
Programming / Re: Dive: Why does not this work
« Last post by Lars on April 20, 2024, 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.

27
Programming / Re: Dive: Why does not this work
« Last post by Jochen Schäfer on April 20, 2024, 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.
28
Applications / Re: LarsenCommander - new test version
« Last post by Andy Willis on April 20, 2024, 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. 
29
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.
30
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.
Pages: 1 2 [3] 4 5 ... 10