1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Use the book background on widescreen

This commit is contained in:
Mathieu Schroeter 2017-10-21 15:55:29 +02:00
parent 108c577b85
commit cf02f03a6c
4 changed files with 15 additions and 6 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 KiB

After

Width:  |  Height:  |  Size: 112 KiB

View File

@ -760,7 +760,15 @@ DoInit (int argc, char * argv[], bool & exit)
totalDim.y = LYLOGIC;
iconDim.x = 0;
iconDim.y = 0;
if (!g_pPixmap->Cache (CHBACKBUILD, "image/back-build.png", totalDim, iconDim))
if (!g_pPixmap->Cache (
CHBACKBUILD, "image/back-build.png", totalDim, iconDim))
return EXIT_FAILURE;
totalDim.x = LXLOGIC;
totalDim.y = LYLOGIC;
iconDim.x = 0;
iconDim.y = 0;
if (!g_pPixmap->Cache (CHBACKBOOK, "image/back-book.png", totalDim, iconDim))
return EXIT_FAILURE;
totalDim.x = DIMCELX * 2 * 16;

View File

@ -90,6 +90,7 @@
#define CHBIGNUM 14
#define CHMASK2 15
#define CHBACKBUILD 16
#define CHBACKBOOK 17
#define FOGHIDE 4
// clang-format on

View File

@ -172,7 +172,7 @@ static Phase table[] =
{
EV_PHASE_HISTORY0,
"image/history0.png",
CHNONE,
CHBACKBOOK,
CPixmap::Mode::FIX,
true,
{
@ -197,7 +197,7 @@ static Phase table[] =
{
EV_PHASE_HISTORY1,
"image/history1.png",
CHNONE,
CHBACKBOOK,
CPixmap::Mode::FIX,
true,
{
@ -222,7 +222,7 @@ static Phase table[] =
{
EV_PHASE_INFO,
"image/info%.3d.png",
CHNONE,
CHBACKBOOK,
CPixmap::Mode::FIX,
false,
{
@ -320,7 +320,7 @@ static Phase table[] =
{
EV_PHASE_STOP,
"image/stop%.3d.png",
CHNONE,
CHBACKBOOK,
CPixmap::Mode::FIX,
false,
{
@ -369,7 +369,7 @@ static Phase table[] =
{
EV_PHASE_HELP,
"image/help.png",
CHNONE,
CHBACKBOOK,
CPixmap::Mode::FIX,
true,
{