Skip to content

Commit

Permalink
Disable byte alignment by default
Browse files Browse the repository at this point in the history
  • Loading branch information
elishacloud committed Sep 7, 2024
1 parent 962567b commit 43205d2
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dllmain/BuildNo.rc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define BUILD_NUMBER 7120
#define BUILD_NUMBER 7121
2 changes: 1 addition & 1 deletion Settings/AllSettings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ DdrawEmulateLock = 0
DdrawForceMipMapAutoGen = 0
DdrawFlipFillColor = 0
DdrawFixByteAlignment = 0
DdrawDisableByteAlignment = 0
DdrawEnableByteAlignment = 0
DdrawRemoveScanlines = 0
DdrawRemoveInterlacing = 0
DdrawReadFromGDI = 0
Expand Down
4 changes: 2 additions & 2 deletions Settings/Settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
visit(DdrawClippedHeight) \
visit(DdrawCustomWidth) \
visit(DdrawCustomHeight) \
visit(DdrawDisableByteAlignment) \
visit(DdrawEnableByteAlignment) \
visit(DdrawDisableDirect3DCaps) \
visit(DdrawEmulateLock) \
visit(DdrawForceMipMapAutoGen) \
Expand Down Expand Up @@ -213,7 +213,7 @@ struct CONFIG
bool DDrawCompatNoProcAffinity = false; // Disables DDrawCompat single processor affinity
bool DdrawAutoFrameSkip = false; // Automatically skips frames to reduce input lag
DWORD DdrawFixByteAlignment = false; // Fixes lock with surfaces that have unaligned byte sizes, 1) just byte align, 2) byte align + D3DTEXF_NONE, 3) byte align + D3DTEXF_LINEAR
bool DdrawDisableByteAlignment = false; // Disables 32bit / 64bit byte alignment
bool DdrawEnableByteAlignment = false; // Disables 32bit / 64bit byte alignment
DWORD DdrawResolutionHack = 0; // Removes the artificial resolution limit from Direct3D7 and below https://github.com/UCyborg/LegacyD3DResolutionHack
bool DdrawRemoveScanlines = 0; // Experimental feature to removing interlaced black lines in a single frame
bool DdrawRemoveInterlacing = 0; // Experimental feature to removing interlacing between frames
Expand Down
2 changes: 1 addition & 1 deletion Settings/Settings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ DdrawEmulateLock = 0
DdrawForceMipMapAutoGen = 0
DdrawFlipFillColor = 0
DdrawFixByteAlignment = 0
DdrawDisableByteAlignment = 0
DdrawEnableByteAlignment = 0
DdrawRemoveScanlines = 0
DdrawRemoveInterlacing = 0
DdrawReadFromGDI = 0
Expand Down
2 changes: 1 addition & 1 deletion ddraw/IDirect3DTypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,9 @@ void ConvertDeviceDesc(D3DDEVICEDESC7 &Desc7, D3DCAPS9 &Caps9)
D3DPTEXTURECAPS_TRANSPARENCY |
D3DPTEXTURECAPS_BORDER |
D3DPTEXTURECAPS_COLORKEYBLEND |
D3DPTEXTURECAPS_POW2 |
(Caps9.TextureCaps &
(D3DPTEXTURECAPS_PERSPECTIVE |
D3DPTEXTURECAPS_POW2 |
D3DPTEXTURECAPS_ALPHA |
D3DPTEXTURECAPS_SQUAREONLY |
D3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE |
Expand Down
2 changes: 1 addition & 1 deletion ddraw/IDirectDrawTypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ void AdjustVidMemory(LPDWORD lpdwTotal, LPDWORD lpdwFree)

DWORD GetByteAlignedWidth(DWORD Width, DWORD BitCount)
{
if (!Config.DdrawDisableByteAlignment)
if (Config.DdrawEnableByteAlignment)
{
while ((Width * BitCount) % 64)
{
Expand Down

0 comments on commit 43205d2

Please sign in to comment.