I added two new methods to GR_Graphic: static 
s_getScreenResolution() which is used in ut_units for conversions 
from and to pixels, and setStaticScreenResolution(), which is used 
to set the resolution returned by the former.

All derived graphic classes that do not have a hardcoded screen 
resolution, but rather obtain it from the system have to call the 
latter method in their constructor -- I have done this for Win32; on 
Unix this is not needed as resolution is hardcoded at 100.

files: gr_Graphics.h/cpp, gr_Win32Graphics.cpp, ut_units.cpp

Tomas

Reply via email to