File diff r6936:6f0a52e3732c → r6937:bea726150bf3
src/video/dedicated_v.cpp
Show inline comments
 
@@ -11,13 +11,13 @@
 
#include "../network/network.h"
 
#include "../window.h"
 
#include "../console.h"
 
#include "../variables.h"
 
#include "../genworld.h"
 
#include "../fileio.h"
 
#include "../blitter/blitter.hpp"
 
#include "../blitter/factory.hpp"
 
#include "dedicated_v.h"
 

	
 
#ifdef BEOS_NET_SERVER
 
#include <net/socket.h>
 
#endif
 

	
 
@@ -125,14 +125,12 @@ static const char *DedicatedVideoStart(c
 
	int bpp = BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth();
 
	if (bpp == 0) _dedicated_video_mem = NULL;
 
	else          _dedicated_video_mem = malloc(_cur_resolution[0] * _cur_resolution[1] * (bpp / 8));
 

	
 
	_screen.width = _screen.pitch = _cur_resolution[0];
 
	_screen.height = _cur_resolution[1];
 
	_screen.renderer = RendererFactoryBase::SelectRenderer(BlitterFactoryBase::GetCurrentBlitter()->GetRenderer());
 
	if (_screen.renderer == NULL) error("Couldn't load the renderer '%s' the selected blitter depends on", BlitterFactoryBase::GetCurrentBlitter()->GetRenderer());
 

	
 
	SetDebugString("net=6");
 

	
 
#ifdef WIN32
 
	// For win32 we need to allocate a console (debug mode does the same)
 
	CreateConsole();