-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a ton of small, but important changes
I've inserted the output of a `#define DUMP_MEMUSAGE` build into the structure definitions so that I can quickly see what needs to be rewritten/rearranged to improve memory layout. Now, I'm manually calling a bunch of the graphics APIs, as MFC doesn't actually check the return values, I'd like to at least wrap them in `VERIFY( )`, so I can catch pathological behavior (i.e. not go insane debugging silent failures). God I hate MFC. Also tweaked the const-correctness here and there, and replaced a few initializations with brace-initializers. I refactored `CSelectDrivesDlg::OnBnClickedBrowsefolder` slightly, so that it's less hairy. `ownerdrawnlistcontrol.h` has seen the **most**, and the **largest** changes. When I unrolled/separated the loops, `COwnerDrawnListCtrl::DrawItem` got extremely ugly, unreadable, and generally too fucking big! Neither I nor anyone else likes that sort of code, so I broke it up into far more comprehensible chunks. Because of that I finally have a proper understanding of what is going on in that function! Remaining work to be done: Inline the newly factored-out functions where appropriate.
- Loading branch information
Showing
20 changed files
with
574 additions
and
244 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.