Started by FreezeFlame(Alchemy), February 17, 2020, 23:05:11
QuoteThe pattern drawing code is very old (most of it is more or less untouched since the old MPT days), and it certainly doesn't use a lot of template metaprogramming, so I have no idea where you looked at to get the idea that it uses templates or other complex C++ magic
QuoteThere are no GUI widgets involved. All the drawing code is in Draw_pat.cpp and it does little more than filling an off-screen bitmap with text, rectangles and copies of other bitmaps (pattern font and VU meters) and then copies that image on the screen.
QuoteThis is pretty much bog-standard WinAPI GDI code like you will see it in a lot of older Windows applications, so some familiarity with GDI (DCs, window handles, bitmaps, pens, brushes) would be helpful for understanding the code.
Quote from: FreezeFlame(Alchemy) on February 18, 2020, 12:04:21Very interesting. Read about GUI frameworks having such a option before, but never thought that OpenMPT did exactly this. Sounds like a PITA to implement.