[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mash/mash-1/render vw.h vw.cc



Update of /usr/mash/src/repository/mash/mash-1/render
In directory gumby.cs.berkeley.edu:/tmp/cvs-serv7798

Modified Files:
	vw.h vw.cc 
Log Message:
Updated the DirectX support.  This code should only require DirectX
version 3, or newer.  The code verfies certain requirements, such that all
monitors use the same video mode (i.e., bit depth) and support blt's from
system memory to video memory.  If any requirement is not met then the
traditional video widget is used.  For a particular window, DirectDraw is
only used if that window is larger than one pixel (i.e., more than 1x1),
the width is a multiple of 8, and at least 16 colors are used.

Information about whether Ddraw is using used is displayed in the mash GUI
console.  This message is only displayed once, and more precisely reports
whether DirectX meets our requirements (rather than claiming that DirectX
will be used for all windows, which is a likely but not guaranteed).
Additional verbose messages can be enabled by uncommenting the "#define
SHOW_MSGS" line.

I have not modified makefile.vc.  Possible changes include adding
ole32.lib and guids.lib (guids.lib should be listed before dxguid.lib).  
Also, the line that conditionally defines USE_DDRAW may need to be moved
so that it's located after the line that's labeled with "#FIXME NLAYER
deine".