[pull] develop from MonoGame:develop#248
Merged
pull[bot] merged 3 commits intoMu-L:developfrom Jan 22, 2026
Merged
Conversation
Disable VSCode based CoPilot features so that contributors who need to use CoPilot for work or other projects do not need to disable it manually. ### Contributor Declaration - [x] I certify that no LLM's were used to generate any code or documentation in this contribution.
Add a new `FontImporter` in which you can directly specify the properties that would otherwise go into a .spritefont file. ### Contributor Declaration - [x] I certify that no LLM's were used to generate any code or documentation in this contribution.
Fixes #9011 ### Description of Change The `StringBuilder` in `HandleDropMessage` was allocated with a buffer size of `buffSize`, but the `cch` parameter passed to `DragQueryFile` is `buffSize + 1` (to account for the null terminator). This mismatch could cause the last character of file paths to be truncated on some configurations, as reported in the issue. The fix ensures the `StringBuilder` capacity matches the expected buffer size passed to the Win32 API. **Before:** ```csharp StringBuilder builder = new StringBuilder((int)buffSize); DragQueryFile(hdrop, i, builder, buffSize + 1); ``` **After:** ```csharp StringBuilder builder = new StringBuilder((int)buffSize + 1); DragQueryFile(hdrop, i, builder, buffSize + 1); ``` Co-authored-by: Tom Spilman <tom@sickheadgames.com>
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )