View md.tis
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
namespace MD { | |
function makeTextStream() { | |
var out = []; // lines | |
var curl = ""; // current line | |
var curo = 0; // current line offset (a.k.a. level) | |
function outPrefix(text, level = 0) { | |
if(curl) out.push(curl); |
View dib32.cpp
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
#include <windows.h> | |
class dib32 | |
{ | |
const unsigned _width; | |
const unsigned _height; | |
void* _bits; | |
mutable HBITMAP _old_bitmap; | |
mutable HDC _dc; | |
HBITMAP _bitmap; |