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

Refactor oslSetDrawBuffer function for improved readability and maintenance #52

Merged
merged 1 commit into from
Sep 1, 2024

Conversation

dogo
Copy link
Owner

@dogo dogo commented Sep 1, 2024

Summary

Refactored the oslSetDrawBuffer function to enhance readability and maintainability without altering its core functionality.

Key Changes

  • Improved Comments: Added clear explanations for each operation, focusing on the differences between PSP and non-PSP environments.
  • Streamlined Logic: Grouped condition checks for better clarity and reduced redundancy.
  • Better Formatting: Updated code indentation and spacing for improved readability.

Impact

Functionality remains unchanged, but the code is now easier to understand and maintain.

…enance

- Added detailed comments explaining each step of the function, particularly focusing on the PSP vs non-PSP (Windows) differences.
- Grouped condition checks to reduce redundancy and clarify the logic.
- Improved code formatting with better indentation and line spacing.
- Ensured that performance considerations are preserved, particularly for non-PSP platforms where the function is known to be slower.
@dogo dogo merged commit 49b20a1 into master Sep 1, 2024
6 checks passed
@dogo dogo deleted the refactor/oslSetDrawBuffer branch September 1, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant