Lines Matching full:ddsd
99 DDSURFACEDESC ddsd = {0};
100 ddsd.dwSize = sizeof(ddsd);
101 ddsd.dwFlags = DDSD_CAPS;
102 ddsd.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE;
104 long result = directDraw->CreateSurface(&ddsd, &frontBuffer, 0);
105 directDraw->GetDisplayMode(&ddsd);
107 switch(ddsd.ddpfPixelFormat.dwRGBBitCount)
121 ddsd.dwFlags = DDSD_CAPS | DDSD_WIDTH | DDSD_HEIGHT;
122 ddsd.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN;
123 ddsd.dwWidth = width;
124 ddsd.dwHeight = height;
126 directDraw->CreateSurface(&ddsd, &backBuffer, 0);
346 DDSURFACEDESC DDSD;
347 DDSD.dwSize = sizeof(DDSD);
349 long result = frontBuffer->Lock(0, &DDSD, DDLOCK_WAIT, 0);
353 int width = DDSD.dwWidth;
354 int height = DDSD.dwHeight;
355 int stride = DDSD.lPitch;
357 void *sourceBuffer = DDSD.lpSurface;
417 DDSURFACEDESC DDSD;
418 DDSD.dwSize = sizeof(DDSD);
420 long result = backBuffer->Lock(0, &DDSD, DDLOCK_WAIT, 0);
424 width = DDSD.dwWidth;
425 height = DDSD.dwHeight;
426 stride = DDSD.lPitch;
428 framebuffer = DDSD.lpSurface;