aboutsummaryrefslogtreecommitdiff
path: root/src/binres
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-05-10 10:49:31 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2023-05-10 10:49:31 +0200
commita9b9ed95f39cff40710e74ed81fdedee1cfad9e2 (patch)
treeacd01294ad1ae6f88b7515d6a6d8ac790f444f1d /src/binres
parentff671f2171396088210600bab39ad9631e0d1daf (diff)
Remove all warnings from source code
Diffstat (limited to 'src/binres')
-rw-r--r--src/binres/binres.cpp10
-rw-r--r--src/binres/binres.hpp8
-rw-r--r--src/binres/cburnett_png.hpp2
-rw-r--r--src/binres/chesscom_8bits_png.hpp2
-rw-r--r--src/binres/hide_png.hpp2
-rw-r--r--src/binres/mat_png.hpp2
-rw-r--r--src/binres/swap_png.hpp2
-rw-r--r--src/binres/zoomin_png.hpp2
-rw-r--r--src/binres/zoomout_png.hpp2
9 files changed, 17 insertions, 15 deletions
diff --git a/src/binres/binres.cpp b/src/binres/binres.cpp
index f6153f6..9661b08 100644
--- a/src/binres/binres.cpp
+++ b/src/binres/binres.cpp
@@ -1,5 +1,15 @@
#include "binres.hpp"
+// Embedded PGNs:
+#include "swap_png.hpp"
+#include "zoomin_png.hpp"
+#include "zoomout_png.hpp"
+#include "cburnett_png.hpp"
+#include "chesscom_8bits_png.hpp"
+#include "hide_png.hpp"
+#include "mat_png.hpp"
+#include "ochess_png.hpp"
+
wxBitmap LoadPNG(std::string icon, wxSize size) {
wxImage img = LoadPNG(icon).ConvertToImage();
return (wxBitmap(
diff --git a/src/binres/binres.hpp b/src/binres/binres.hpp
index 338e0bc..9d2ef85 100644
--- a/src/binres/binres.hpp
+++ b/src/binres/binres.hpp
@@ -1,14 +1,6 @@
#pragma once
#include "ochess.hpp"
-#include "swap_png.hpp"
-#include "zoomin_png.hpp"
-#include "zoomout_png.hpp"
-#include "cburnett_png.hpp"
-#include "chesscom_8bits_png.hpp"
-#include "hide_png.hpp"
-#include "mat_png.hpp"
-#include "ochess_png.hpp"
wxBitmap LoadPNG(std::string icon, wxSize size);
wxBitmap LoadPNG(std::string icon);
diff --git a/src/binres/cburnett_png.hpp b/src/binres/cburnett_png.hpp
index 4939d0d..a4b8abe 100644
--- a/src/binres/cburnett_png.hpp
+++ b/src/binres/cburnett_png.hpp
@@ -1,4 +1,4 @@
-static unsigned char cburnett_png[] = {
+unsigned char cburnett_png[] = {
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x01, 0x90, 0x00, 0x00, 0x04, 0xb0,
0x08, 0x04, 0x00, 0x00, 0x00, 0x7f, 0x22, 0xd4, 0xd6, 0x00, 0x00, 0x00,
diff --git a/src/binres/chesscom_8bits_png.hpp b/src/binres/chesscom_8bits_png.hpp
index 683a27f..e10633c 100644
--- a/src/binres/chesscom_8bits_png.hpp
+++ b/src/binres/chesscom_8bits_png.hpp
@@ -1,4 +1,4 @@
-static unsigned char chesscom_8bits_png[] = {
+unsigned char chesscom_8bits_png[] = {
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x01, 0x90, 0x00, 0x00, 0x00, 0xc8,
0x02, 0x03, 0x00, 0x00, 0x00, 0xbb, 0x7b, 0x5f, 0x71, 0x00, 0x00, 0x03,
diff --git a/src/binres/hide_png.hpp b/src/binres/hide_png.hpp
index e43104d..6b45088 100644
--- a/src/binres/hide_png.hpp
+++ b/src/binres/hide_png.hpp
@@ -1,4 +1,4 @@
-static unsigned char hide_png[] = {
+unsigned char hide_png[] = {
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x32,
0x08, 0x06, 0x00, 0x00, 0x00, 0x1e, 0x3f, 0x88, 0xb1, 0x00, 0x00, 0x01,
diff --git a/src/binres/mat_png.hpp b/src/binres/mat_png.hpp
index c00391c..e4a6cc3 100644
--- a/src/binres/mat_png.hpp
+++ b/src/binres/mat_png.hpp
@@ -1,4 +1,4 @@
-static unsigned char mat_png[] = {
+unsigned char mat_png[] = {
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x32,
0x08, 0x06, 0x00, 0x00, 0x00, 0x1e, 0x3f, 0x88, 0xb1, 0x00, 0x00, 0x00,
diff --git a/src/binres/swap_png.hpp b/src/binres/swap_png.hpp
index 514027e..2417208 100644
--- a/src/binres/swap_png.hpp
+++ b/src/binres/swap_png.hpp
@@ -1,4 +1,4 @@
-static unsigned char swap_png[] = {
+unsigned char swap_png[] = {
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x32,
0x08, 0x06, 0x00, 0x00, 0x00, 0x1e, 0x3f, 0x88, 0xb1, 0x00, 0x00, 0x10,
diff --git a/src/binres/zoomin_png.hpp b/src/binres/zoomin_png.hpp
index 6583a8e..8ca3874 100644
--- a/src/binres/zoomin_png.hpp
+++ b/src/binres/zoomin_png.hpp
@@ -1,4 +1,4 @@
-static unsigned char zoomin_png[] = {
+unsigned char zoomin_png[] = {
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x32,
0x08, 0x06, 0x00, 0x00, 0x00, 0x1e, 0x3f, 0x88, 0xb1, 0x00, 0x00, 0x13,
diff --git a/src/binres/zoomout_png.hpp b/src/binres/zoomout_png.hpp
index 7440a45..e13bd67 100644
--- a/src/binres/zoomout_png.hpp
+++ b/src/binres/zoomout_png.hpp
@@ -1,4 +1,4 @@
-static unsigned char zoomout_png[] = {
+unsigned char zoomout_png[] = {
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x32,
0x08, 0x06, 0x00, 0x00, 0x00, 0x1e, 0x3f, 0x88, 0xb1, 0x00, 0x00, 0x11,