*
* Unsure about these: DDSCL_FPUSETUP DDSCL_FPURESERVE
*
- * These seem not really imporant for wine
+ * These don't seem very important for wine:
* DDSCL_ALLOWREBOOT, DDSCL_NOWINDOWCHANGES, DDSCL_ALLOWMODEX
*
* Returns:
* the WineD3DSurface when the ddraw surface is destroyed.
*
* However, for all surfaces which can be in a container in WineD3D,
- * we have to do this. These surfaces are ususally complex surfaces,
+ * we have to do this. These surfaces are usually complex surfaces,
* so this concerns primary surfaces with a front and a back buffer,
* and textures.
*
* |------------------------| |-----------------|
- * | DDraw surface | | Containter |
+ * | DDraw surface | | Container |
* | | | |
* | Child |<------------->| Parent |
* | Texture |<------------->| |
{
Pool = WINED3DPOOL_SYSTEMMEM;
}
- /* Should I forward the MANEGED cap to the managed pool ? */
+ /* Should I forward the MANAGED cap to the managed pool ? */
/* Get the format. It's set already by CreateNewSurface */
Format = PixelFormat_DD2WineD3D(&object->surface_desc.u4.ddpfPixelFormat);
*
* Parameters:
* HWDesc: Structure to fill with the HW caps
- * HelDesc: Structure to fill with the hardare emulation caps
+ * HelDesc: Structure to fill with the hardware emulation caps
*
* Returns:
* D3D_OK on success
* Params:
* Count: Pointer to a DWORD containing the numbers of pick records to
* retrieve
- * D3DPickRec: Address to store the resulting D3DPICKRECORD arry.
+ * D3DPickRec: Address to store the resulting D3DPICKRECORD array.
*
* Returns:
* D3D_OK, because it's a stub
*
* Params:
* refiid: IID of the device to create
- * Surface: Inititial rendertarget
+ * Surface: Initial rendertarget
* Device: Address to return the interface pointer
*
* Returns:
WINED3DCAPS WCaps;
HRESULT hr;
- /* Some Variables to asign to the pointers in WCaps */
+ /* Some variables to assign to the pointers in WCaps */
TRACE("()->(%p,%p,%p\n", WineD3D, Desc123, Desc7);
memset(&WCaps, 0, sizeof(WCaps));
* Assigns a lighting value to this object
*
* Params:
- * Light: Lighting parametes to set
+ * Light: Lighting parameter to set
*
* Returns:
* D3D_OK on success
* What is this? Seems to create DirectDraw objects...
*
* Params
- * The ususal things???
+ * The usual things???
*
* RETURNS
* ???
struct list *entry, *entry2;
WARN("There are still existing DirectDraw interfaces. Wine bug or buggy application?\n");
- /* We remove elemets from this loop */
+ /* We remove elements from this loop */
LIST_FOR_EACH_SAFE(entry, entry2, &global_ddraw_list)
{
HRESULT hr;
/* Does a D3D device exist? Destroy it
* TODO: Destroy all Vertex buffers, Lights, Materials
- * and execture buffers too
+ * and execute buffers too
*/
if(ddraw->d3ddevice)
{
* DDERR_ALREADYINITIALIZED
*
* Params:
- * DD: DirectDraw interface this palette is asigned to
+ * DD: DirectDraw interface this palette is assigned to
* Flags: Some flags, as usual
* ColorTable: The startup color table
*
IUnknown *ifaceToRelease = This->ifaceToRelease;
int i;
- /* Complex attached surfaces are destroyed implicitely when the root is released */
+ /* Complex attached surfaces are destroyed implicitly when the root is released */
EnterCriticalSection(&ddraw_cs);
if(!This->is_complex_root)
{
* What about overlay surfaces, AFAIK they can flip too?
*/
if( !(This->surface_desc.ddsCaps.dwCaps & DDSCAPS_FRONTBUFFER) )
- return DDERR_INVALIDOBJECT; /* Unckecked */
+ return DDERR_INVALIDOBJECT; /* Unchecked */
EnterCriticalSection(&ddraw_cs);
* Allows a sysmem surface to be paged out
*
* Params:
- * Flags: Not used, must be 0(unckeched)
+ * Flags: Not used, must be 0(unchecked)
*
* Returns:
* DD_OK, because it's a stub
ok(rc == D3D_OK, "IDirect3DDevice7_GetCaps failed with %x\n", rc);
if ( caps.dwMaxActiveLights == (DWORD) -1) {
- /* Some cards without T&L Support return -1 (Examples: Vodoo banshee, RivaTNT / NV4) */
+ /* Some cards without T&L Support return -1 (Examples: Voodoo Banshee, RivaTNT / NV4) */
skip("T&L not supported\n");
return;
}
rc = IDirect3DVertexBuffer7_Lock(lpVBufDest2, 0, (void **) &out2, NULL);
ok(rc==D3D_OK , "IDirect3DVertexBuffer::Lock returned: %x\n", rc);
if(!out2) goto out;
- /* Small thing without much practial meaning, but I stumbled upon it,
+ /* Small thing without much practical meaning, but I stumbled upon it,
* so let's check for it: If the output vertex buffer has to RHW value,
* The RHW value of the last vertex is written into the next vertex
*/
rc = IDirectDrawSurface_Blt(lpDst, NULL, lpSrc, NULL, DDBLT_KEYDEST, &fx);
ok(rc == DD_OK, "IDirectDrawSurface_Blt returned %08x\n", rc);
- /* With korrectly passed override keys no key in the surface is needed.
+ /* With correctly passed override keys no key in the surface is needed.
* Again, the result was checked before, no need to do that again
*/
rc = IDirectDrawSurface_Blt(lpDst, NULL, lpSrc, NULL, DDBLT_KEYDESTOVERRIDE, &fx);
hr = IDirectDrawSurface7_GetPrivateData(surface7, &IID_IDirectDrawSurface7, &ptr, &size);
ok(hr == DD_OK, "IDirectDrawSurface7_GetPrivateData failed with %08x\n", hr);
ref2 = getref((IUnknown *) lpDD);
- /* Object is NOT beein addrefed */
+ /* Object is NOT being addrefed */
ok(ptr == (IUnknown *) lpDD, "Returned interface pointer is %p, expected %p\n", ptr, lpDD);
ok(ref2 == ref + 1, "Object reference is %d, expected %d. ptr at %p, orig at %p\n", ref2, ref + 1, ptr, lpDD);
hr = IDirect3DDevice7_Clear(device, 0, NULL, D3DCLEAR_TARGET, 0xffff00ff, 0.0, 0);
ok(hr == D3D_OK, "Clear failed, hr = %08x\n", hr);
- /* Draw without textures - Should resut in a white quad */
+ /* Draw without textures - Should result in a white quad */
hr = IDirect3DDevice7_DrawPrimitive(device, D3DPT_TRIANGLESTRIP, D3DFVF_XYZ | D3DFVF_TEX1, quad, 4, 0);
ok(hr == D3D_OK, "DrawPrimitive failed, hr = %08x\n", hr);
*
* Params:
* lplpDDSurface: Address to store the interface pointer
- * lpValid: Set to TRUE if a depth is asigned, FALSE otherwise
+ * lpValid: Set to TRUE if a depth is assigned, FALSE otherwise
*
* Returns:
* D3D_OK, because it's a stub