src/video/dedicated_v.cpp
branchNewGRF_ports
changeset 10994 cd9968b6f96b
parent 10991 d8811e327d12
equal deleted inserted replaced
10991:d8811e327d12 10994:cd9968b6f96b
   136 
   136 
   137 const char *VideoDriver_Dedicated::Start(const char * const *parm)
   137 const char *VideoDriver_Dedicated::Start(const char * const *parm)
   138 {
   138 {
   139 	int bpp = BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth();
   139 	int bpp = BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth();
   140 	if (bpp == 0) _dedicated_video_mem = NULL;
   140 	if (bpp == 0) _dedicated_video_mem = NULL;
   141 	else          _dedicated_video_mem = MallocT<byte>(_cur_resolution[0] * _cur_resolution[1] * (bpp / 8));
   141 	else          _dedicated_video_mem = MallocT<byte>(_cur_resolution.width * _cur_resolution.height * (bpp / 8));
   142 
   142 
   143 	_screen.width = _screen.pitch = _cur_resolution[0];
   143 	_screen.width  = _screen.pitch = _cur_resolution.width;
   144 	_screen.height = _cur_resolution[1];
   144 	_screen.height = _cur_resolution.height;
   145 	ScreenSizeChanged();
   145 	ScreenSizeChanged();
   146 
   146 
   147 	SetDebugString("net=6");
   147 	SetDebugString("net=6");
   148 
   148 
   149 #if defined(WINCE)
   149 #if defined(WINCE)