|
|
@ -34,10 +34,12 @@ distribution.
|
|
|
|
#include "modules/Windows.h"
|
|
|
|
#include "modules/Windows.h"
|
|
|
|
|
|
|
|
|
|
|
|
using namespace DFHack;
|
|
|
|
using namespace DFHack;
|
|
|
|
|
|
|
|
using df::global::gps;
|
|
|
|
|
|
|
|
|
|
|
|
Windows::df_screentile *Windows::getScreenBuffer()
|
|
|
|
Windows::df_screentile *Windows::getScreenBuffer()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return (df_screentile *) df::global::gps->screen;
|
|
|
|
if (!gps) return NULL;
|
|
|
|
|
|
|
|
return (df_screentile *) gps->screen;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Windows::df_window::df_window(int x, int y, unsigned int width, unsigned int height)
|
|
|
|
Windows::df_window::df_window(int x, int y, unsigned int width, unsigned int height)
|
|
|
@ -79,7 +81,7 @@ bool Windows::df_window::unlock (painter * painter)
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Windows::top_level_window::top_level_window(): df_window(0,0,df::global::gps->dimx,df::global::gps->dimy)
|
|
|
|
Windows::top_level_window::top_level_window() : df_window(0,0,gps ? gps->dimx : 80,gps ? gps->dimy : 25)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
buffer = 0;
|
|
|
|
buffer = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|