Hide a couple of internals in an anonymous namespace.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
Andrea Odetti 2020-12-27 20:26:07 +00:00
parent 7d6439fefd
commit 84b6afe758
2 changed files with 27 additions and 22 deletions

View file

@ -71,8 +71,6 @@ namespace
return true;
}
}
struct CBITMAP : public CHANDLE
{
std::vector<char> image;
@ -88,6 +86,8 @@ std::string getFilename(const std::string & resource)
return resource;
}
}
HBITMAP LoadBitmap(HINSTANCE hInstance, const char * resource)
{
if (resource)

View file

@ -6,6 +6,9 @@
#include <linux/windows/misc.h>
#include <frontends/common2/resources.h>
namespace
{
struct CBITMAP : public CHANDLE
{
std::shared_ptr<SDL_Surface> surface;
@ -21,6 +24,8 @@ std::string getFilename(const std::string & resource)
return resource;
}
}
HBITMAP LoadBitmap(HINSTANCE hInstance, const char * resource)
{
if (resource)