Questions tagged [directdraw]

DirectDraw is a deprecated API that used to be a part of Microsoft's DirectX API.

DirectDraw is used to accelerate rendering of graphics in applications. DirectDraw also allows applications to run fullscreen or embedded in a window such as most other MS Windows applications. DirectDraw uses hardware acceleration if it is available on the client's computer. DirectDraw allows direct access to video memory, hardware overlays, hardware blitters, and page flipping. Its video memory manager can manipulate video memory with ease, taking full advantage of the blitting and color decompression capabilities of different types of display adapters.

91 questions
0
votes
1 answer

A Duplicated fast (non flickering) mouse cursor movement?

Imagine a case where you want to duplicate (emulate) mouse cursor movements in your window (as in drawing a cursor overlay). I have a window and I want a very exact similar mouse icon moves when user moves the mouse but in boundaries of my window…
Roozbeh G
  • 427
  • 4
  • 18
0
votes
1 answer

Can I prevent IVideoWindow::put_Visible from posting a message?

When ever IVideoWindow::put_Visible() is invoked, it peek a message from the message queue and dispatch it. That totally messes up the call sequence. I have fixed several crashes caused by this, in a case by case bias. That is, to set a flag before…
Middleware
  • 330
  • 2
  • 13
0
votes
0 answers

DirectDraw Rendering Issues in Windows 8 in Legacy Code

I know almost nothing about DirectDraw and/or DirectX, but I've been helping port an old Windows 9x game to Windows 8. The game uses DirectDraw for rendering and on Windows 8 the GUI of the game has major artifacts. Here is what the GUI should look…
FreeMemory
  • 8,444
  • 7
  • 37
  • 49
0
votes
1 answer

Windows Mobile / Directdraw: Rotate video stream

Follow up from: Directdraw: Rotate video stream I managed to preview the camera's video stream, but the image is rotated by 90° to landscape mode. I'm now searching for a way to rotate the camera image back to normal, but the problem is I don't even…
xsl
  • 17,116
  • 18
  • 71
  • 112
0
votes
1 answer

Where the DirectDraw initialization code is in the SDL2 code?

Can you point its exact location to me? Should be somewhere in src/video/windows... Or was it thrown out, and now GDI is used instead for software rendering?
user2547526
  • 71
  • 3
  • 14
0
votes
1 answer

IDirectDrawSurface7::Blt - NULL pointer for source surface

Can lpDDSrcSurface be NULL while calling IDirectDrawSurface7::Blt? dest_surf->Blt(&dest_rect, NULL, NULL, blt_flags, NULL); Seems like the code above simply skips blitting but MSDN says nothing about it however.
Ivars
  • 2,375
  • 7
  • 22
  • 31
0
votes
1 answer

IDirectDrawSurface7::Blt returned E_INVALIDARG

Step1: Image* image = NULL; image = Bitmap::FromFile(m_lpwFPSImagePath[i], TRUE); DDSURFACEDESC2 ddsd; DDCOLORKEY ddck; ZeroMemory( &ddsd, sizeof( ddsd )…
Allen Hong
  • 56
  • 4
0
votes
2 answers

Getting programmatically Device Caps for DirectX 6.1 (DDraw4)

I am writing windows32 hooks around DirectX 6.1 library to DirectX 9.0c; Idea is to replace all calls to DX 6.1 3D device with calls to Direct 9.0c and inject some custom code, so old game which I am patching (99' year) will be able to use shaders,…
PiotrK
  • 4,210
  • 6
  • 45
  • 65
0
votes
2 answers

Is BltFast supported in Windows Mobile DirectDraw?

Can I get access IDirectDrawSurface5 on a WindowsMobile device so that I can access the BltFast method?
Kevin
  • 9,309
  • 12
  • 44
  • 51
0
votes
2 answers

How to get DirectDraw Last error string(DirectX 7)

When I failed executing a DirectDraw method, how to get the failure error string in DirectX 7? if (FAILED(lpddPrimarySurface->SetPalette(lpddPalette))) { MessageBox(NULL, **"I want to get the failure string here."**, "Error", MB_OK); return…
Maple Wan
  • 61
  • 1
  • 8
0
votes
1 answer

Internet Explorer control (or other) rendered onto a directdraw surface

I'm tasked with modifying an existing c++ codebase which uses directdraw for its UI. Is it possible to make use of a browser control that renders onto one of the (existing) directdraw surfaces? If so, can anyone point me in the right direction on…
0
votes
2 answers

Linux equivalent to Direct draw

As a c# programmer, I'm used to Microsoft, however, I'm really liking the linux side of things and Mono opens up that world to me a lot better (imo). I have an app that may need some direct draw support in order to display active video, and I'm…
enorl76
  • 2,562
  • 1
  • 25
  • 38
0
votes
1 answer

Correctly rendering overlapping triangles?

I started learning DirectX 9 in C#. I want to render two triangles and rotate them around the Y axis. In this part I initialize the Device: public bool InitializeDevice() { try { meshList = new List(); // Erstellt…
Maxim
  • 317
  • 1
  • 5
  • 13
0
votes
0 answers

The Compressonator convert dds to png with alpha channel

What is the command for converting dds to png with alpha channel? If I use this command: TheCompressonator.exe -convert -r .\dds .\out -format .png then the output pngs don't use the alpha channel. If I open TheCompressonator.exe, select…
Db Xiong
  • 107
  • 1
  • 9
-1
votes
0 answers

SetDisplayMode NotImplementedException

I have C++ working example with using DirectDraw SetDisplayMode to 8 bpp. I'm trying to do the same with .NET and pinvoke. Main window is created with WinApi calls too. But it allows to use only 32 bpp. All other values throw…