ERR("(%p) : surface(%p) has an invalid size\n",This,pCursorBitmap);
returnWINED3DERR_INVALIDCALL;
/* some basic validation checks */
if(pCursorBitmap){
/* MSDN: Cursor must be A8R8G8B8 */
if(WINED3DFMT_A8R8G8B8!=pSur->resource.format){
ERR("(%p) : surface(%p) has an invalid format\n",This,pCursorBitmap);
returnWINED3DERR_INVALIDCALL;
}
/* MSDN: Cursor must be smaller than the display mode */
if(pSur->currentDesc.Width>This->ddraw_width||
pSur->currentDesc.Height>This->ddraw_height){
ERR("(%p) : Surface(%p) is %dx%d pixels, but screen res is %ldx%ld\n",This,pSur,pSur->currentDesc.Width,pSur->currentDesc.Height,This->ddraw_width,This->ddraw_height);
returnWINED3DERR_INVALIDCALL;
}
/* TODO: MSDN: Cursor sizes must be a power of 2 */