equal
deleted
inserted
replaced
12 #include "../window.h" |
12 #include "../window.h" |
13 #include "../console.h" |
13 #include "../console.h" |
14 #include "../variables.h" |
14 #include "../variables.h" |
15 #include "../genworld.h" |
15 #include "../genworld.h" |
16 #include "../fileio.h" |
16 #include "../fileio.h" |
17 #include "../blitter/blitter.hpp" |
17 #include "../blitter/factory.hpp" |
18 #include "dedicated_v.h" |
18 #include "dedicated_v.h" |
19 |
19 |
20 #ifdef BEOS_NET_SERVER |
20 #ifdef BEOS_NET_SERVER |
21 #include <net/socket.h> |
21 #include <net/socket.h> |
22 #endif |
22 #endif |
126 if (bpp == 0) _dedicated_video_mem = NULL; |
126 if (bpp == 0) _dedicated_video_mem = NULL; |
127 else _dedicated_video_mem = malloc(_cur_resolution[0] * _cur_resolution[1] * (bpp / 8)); |
127 else _dedicated_video_mem = malloc(_cur_resolution[0] * _cur_resolution[1] * (bpp / 8)); |
128 |
128 |
129 _screen.width = _screen.pitch = _cur_resolution[0]; |
129 _screen.width = _screen.pitch = _cur_resolution[0]; |
130 _screen.height = _cur_resolution[1]; |
130 _screen.height = _cur_resolution[1]; |
131 _screen.renderer = RendererFactoryBase::SelectRenderer(BlitterFactoryBase::GetCurrentBlitter()->GetRenderer()); |
|
132 if (_screen.renderer == NULL) error("Couldn't load the renderer '%s' the selected blitter depends on", BlitterFactoryBase::GetCurrentBlitter()->GetRenderer()); |
|
133 |
131 |
134 SetDebugString("net=6"); |
132 SetDebugString("net=6"); |
135 |
133 |
136 #ifdef WIN32 |
134 #ifdef WIN32 |
137 // For win32 we need to allocate a console (debug mode does the same) |
135 // For win32 we need to allocate a console (debug mode does the same) |