diff --git a/resources/image/back-lost.png b/resources/image/back-lost.png new file mode 100644 index 0000000..441cfba Binary files /dev/null and b/resources/image/back-lost.png differ diff --git a/resources/image/back-win.png b/resources/image/back-win.png new file mode 100644 index 0000000..754dc4d Binary files /dev/null and b/resources/image/back-win.png differ diff --git a/src/blupi.cxx b/src/blupi.cxx index 17618a2..35ae8de 100644 --- a/src/blupi.cxx +++ b/src/blupi.cxx @@ -886,6 +886,20 @@ DoInit (int argc, char * argv[], bool & exit) CHBACKCHESTW, "image/back-chest-w.png", totalDim, iconDim)) return EXIT_FAILURE; + totalDim.x = LXLOGIC (); + totalDim.y = LYLOGIC (); + iconDim.x = 0; + iconDim.y = 0; + if (!g_pPixmap->Cache (CHBACKWIN, "image/back-win.png", totalDim, iconDim)) + return EXIT_FAILURE; + + totalDim.x = LXLOGIC (); + totalDim.y = LYLOGIC (); + iconDim.x = 0; + iconDim.y = 0; + if (!g_pPixmap->Cache (CHBACKLOST, "image/back-lost.png", totalDim, iconDim)) + return EXIT_FAILURE; + totalDim.x = LXLOGIC (); totalDim.y = LYLOGIC (); iconDim.x = 0; diff --git a/src/def.h b/src/def.h index e312596..0c0833d 100644 --- a/src/def.h +++ b/src/def.h @@ -90,6 +90,8 @@ #define CHBACKCHESTW 19 #define CHBACKSETUP 20 #define CHBACKBYE 21 +#define CHBACKWIN 22 +#define CHBACKLOST 23 #define MAX_PRIVATE_MISSIONS 20 diff --git a/src/event.cxx b/src/event.cxx index 1f55c8a..9dbc819 100644 --- a/src/event.cxx +++ b/src/event.cxx @@ -812,7 +812,7 @@ static Phase table[] = { EV_PHASE_LOST, "image/lost.png", - CHNONE, + CHBACKLOST, CPixmap::Mode::FIX, true, { @@ -831,7 +831,7 @@ static Phase table[] = { EV_PHASE_WIN, "image/win.png", - CHNONE, + CHBACKWIN, CPixmap::Mode::FIX, true, {