Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A couple more cherry-picks for 1.5.2 #6926

Merged
merged 2 commits into from
Feb 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/Windows_MSVC_x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ jobs:
uses: lukka/get-cmake@latest

- name: Restore or setup vcpkg
uses: lukka/run-vcpkg@v11.1
uses: lukka/run-vcpkg@v11.3
with:
vcpkgGitCommitId: '927bc12e31148b0d44ae9d174b96c20e3bcf08eb'
vcpkgGitCommitId: '16ee2ecb31788c336ace8bb14c21801efb6836e4'

- name: Fetch test data
run: |
Expand Down
4 changes: 0 additions & 4 deletions Source/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,7 @@ void DrawHalfTransparentAligned32BlendedRectTo(const Surface &out, unsigned sx,
while (height-- > 0) {
for (unsigned i = 0; i < width; ++i, ++pix) {
const uint32_t v = *pix;
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
*pix = lookupTable[v & 0xFFFF] | (lookupTable[(v >> 16) & 0xFFFF] << 16);
#else
*pix = lookupTable[(v >> 16) & 0xFFFF] | (lookupTable[v & 0xFFFF] << 16);
#endif
}
pix += skipX;
}
Expand Down
4 changes: 0 additions & 4 deletions Source/engine/palette.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,7 @@ void GenerateBlendedLookupTable(std::array<SDL_Color, 256> &palette, int skipFro
#if DEVILUTIONX_PALETTE_TRANSPARENCY_BLACK_16_LUT
for (unsigned i = 0; i < 256; ++i) {
for (unsigned j = 0; j < 256; ++j) {
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
const std::uint16_t index = i | (j << 8);
#else
const std::uint16_t index = j | (i << 8);
#endif
paletteTransparencyLookupBlack16[index] = paletteTransparencyLookup[0][i] | (paletteTransparencyLookup[0][j] << 8);
}
}
Expand Down
70 changes: 35 additions & 35 deletions vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
{
"name": "devilutionx",
"version-string": "1.4.0",
"dependencies": [
"fmt",
"bzip2",
"simpleini"
],
"builtin-baseline": "927bc12e31148b0d44ae9d174b96c20e3bcf08eb",
"features": {
"sdl1": {
"description": "Use SDL1.2 instead of SDL2",
"dependencies": [ "sdl1", "libpng" ]
},
"sdl2": {
"description": "Use SDL2",
"dependencies": [ "sdl2", "sdl2-image" ]
},
"encryption": {
"description": "Build libsodium for packet encryption",
"dependencies": [ "libsodium" ]
},
"translations": {
"description": "Build translation files",
"dependencies": [
{
"name": "gettext",
"features": [ "tools" ]
}
]
},
"tests": {
"description": "Build tests",
"dependencies": [ "gtest" ]
}
}
"name": "devilutionx",
"version-string": "1.5.2",
"dependencies": [
"fmt",
"bzip2",
"simpleini"
],
"builtin-baseline": "16ee2ecb31788c336ace8bb14c21801efb6836e4",
"features": {
"sdl1": {
"description": "Use SDL1.2 instead of SDL2",
"dependencies": [ "sdl1", "libpng" ]
},
"sdl2": {
"description": "Use SDL2",
"dependencies": [ "sdl2", "sdl2-image" ]
},
"encryption": {
"description": "Build libsodium for packet encryption",
"dependencies": [ "libsodium" ]
},
"translations": {
"description": "Build translation files",
"dependencies": [
{
"name": "gettext",
"features": [ "tools" ]
}
]
},
"tests": {
"description": "Build tests",
"dependencies": [ "gtest" ]
}
}
}
Loading