1
Programming / Re: Dive: Why does not this work
« on: Today at 08:23:02 am »
Update: I got it working by setting up the RECTL in SETUP_BLITTER::pVisDstRects correctly.
Now, a picture is shown.
Now, a picture is shown.
OS2World.com Forum is back !!!
Remember to visit OS2World at:
http://www.os2world.com
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.
No need to get snarky. I don’t get anything, so I‘m really not interested in obscured windows in the first place.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?
Code from Mozilla (widget\os2\nswindow.cpp #405), for querying whether the shadow buffer is enabledThanks.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;
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).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.
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.How can I get the option?
Hi Jochen.The search paths are:
I installed it with yum, but I don't know where should I put the .wad files.
I located it on \usr\share\prboom-plus but the game list looks empty. (picture attached).
By the way: SDL2_mixer SDL2_net pcre are also needed so you can add those on the release info.
Regards