Browse Source

OpenDingux: Minor fixes

pull/3431/head
Gleb Mazovetskiy 4 years ago
parent
commit
4ee81f805f
  1. 1
      Packaging/OpenDingux/build.sh
  2. 2
      Packaging/OpenDingux/lepus-manual.txt
  3. 4
      Source/utils/sdl_compat.h

1
Packaging/OpenDingux/build.sh

@ -80,6 +80,7 @@ cmake_configure() {
"-DTARGET_PLATFORM=$TARGET" \
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN}/usr/share/buildroot/toolchainfile.cmake" \
-DDEVILUTIONX_SYSTEM_LIBSODIUM=OFF \
-DDEVILUTIONX_SYSTEM_BZIP2=OFF \
-DSTACK_PROTECTOR=OFF \
"$@"
}

2
Packaging/OpenDingux/lepus-manual.txt

@ -1,5 +1,5 @@
Copy diabdat.mpq from your CD (or GoG install folder) to:
~/.local/share/diasurgical/
~/.local/share/diasurgical/devilution/
For Hellfire, also copy hellfire.mpq, hfmonk.mpq, hfmusic.mpq, and hfvoice.mpq.

4
Source/utils/sdl_compat.h

@ -74,13 +74,13 @@ inline int SDLC_SetSurfaceAndPaletteColors(SDL_Surface *surface, SDL_Palette *pa
SDL_memcpy(palette->colors + firstcolor, colors, ncolors * sizeof(*colors));
#if SDL1_VIDEO_MODE_BPP == 8
// When the video surface is 8bit, we need to set the output pallet as well.
// When the video surface is 8bit, we need to set the output palette as well.
SDL_SetColors(SDL_GetVideoSurface(), colors, firstcolor, ncolors);
#endif
// In SDL1, the surface always has its own distinct palette, so we need to
// update it as well.
return SDL_SetPalette(surface, SDL_LOGPAL, colors, firstcolor, ncolors) - 1;
#else
#else // !USE_SDL1
if (SDL_SetPaletteColors(palette, colors, firstcolor, ncolors) < 0)
return -1;
if (surface->format->palette != palette)

Loading…
Cancel
Save