I want to fill a directdraw suuface with a specific color so i do:
I do not specify a color bit rate when I start DirectDraw (it's a windowed direct draw app). When I run this I should get a green surface but I don't!!! what do I do to fix?? (I think the problem is DirectXObject.CreateColorRGB() giving me the wrong color value)Code:dim color as long dim ddrval as long color = DirectXObject.CreateColorRGB(0,150,0) ddrval = objDDPrimSurf.BltColorFill(r1, color) 'r1 being the rectangle I want to fill


Reply With Quote