You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
334 B
17 lines
334 B
#include "miniwin/ddraw.h" |
|
|
|
namespace dvl { |
|
|
|
extern SDL_Surface *renderer_texture_surface; // defined in dx.cpp |
|
|
|
SDL_Surface *GetOutputSurface() { |
|
#ifdef USE_SDL1 |
|
return SDL_GetVideoSurface(); |
|
#else |
|
if (renderer) |
|
return renderer_texture_surface; |
|
return SDL_GetWindowSurface(window); |
|
#endif |
|
} |
|
|
|
} // namespace dvl
|
|
|