You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defines the existing Usp10Loader::ScriptControl type so callers can pass a zero-initialized control structure to ScriptItemize. Full bidirectional analysis needs both control and state parameters.
The definition preserves the Windows ABI and adds no DLL exports or loading paths. Its first consumer is the separate complex-text rasterization change.
Validation
Clean VC6 Release builds of Generals and Zero Hour.
Local x86 ABI checks against the Windows SDK declarations.
Define Uniscribe ScriptControl for bidirectional itemization
🐞 Bug fix🕐 Less than 10 minutes
AI Description
• Defines the Uniscribe ScriptControl bit-field layout within Usp10Loader.
• Enables non-null itemization control for bidirectional text analysis.
Diagram
classDiagram
class Usp10Loader {
+ScriptItemize(control)
}
class ScriptControl {
+DWORD default_language
+DWORD reserved
}
class Uniscribe {
<<external>>
+ScriptItemize()
}
Usp10Loader *-- ScriptControl : defines
Usp10Loader --> Uniscribe : delegates
ScriptControl --> Uniscribe : control input
Loading
High-Level Assessment
The local structure definition is appropriate for the existing dynamically loaded Uniscribe wrapper and matches its minimal local declarations. Importing the SDK's complete SCRIPT_CONTROL type was considered, but would add unnecessary header coupling when only a zero-initialized, ABI-compatible control value is required.
Files changed (1) +8 / -1
Bug fix (1) +8 / -1
Usp10Loader.hDefine the Uniscribe itemization control layout+8/-1
Define the Uniscribe itemization control layout
• Replaces the forward declaration of 'ScriptControl' with a concrete 32-bit structure containing 16-bit default-language and reserved fields. Documentation explains that callers need a non-null, zero-flag control structure for bidirectional 'ScriptItemize' analysis.
Defines the previously forward-declared Uniscribe itemization control structure so callers can provide a non-null control object for bidirectional text analysis.
Adds the 16-bit default-language and reserved fields matching the Windows control layout.
Documents that callers should keep currently unused control flags zero.
Confidence Score: 5/5
The PR appears safe to merge with no actionable correctness, security, or repository-rule issues identified.
The new structure matches the Uniscribe control layout on the supported target and does not alter existing runtime call behavior.
Important Files Changed
Filename
Overview
Core/Libraries/Source/WWVegas/WWLib/Usp10Loader.h
Replaces the incomplete ScriptControl declaration with an ABI-compatible definition for Uniscribe itemization.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Defines the existing
Usp10Loader::ScriptControltype so callers can pass a zero-initialized control structure toScriptItemize. Full bidirectional analysis needs both control and state parameters.The definition preserves the Windows ABI and adds no DLL exports or loading paths. Its first consumer is the separate complex-text rasterization change.
Validation
git diff --check.Implementation developed with AI assistance.