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> | |
int main() { | |
HDC hdc; | |
int w = GetSystemMetrics(0); | |
int h = GetSystemMetrics(1); | |
while (1) { | |
hdc = GetDC(0); | |
BitBlt(hdc, rand() % 2, rand() % 2, w, h, hdc, rand() % 2, rand() % 2, SRCAND); | |
Sleep(10); |
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
// BMP-related data types based on Microsoft's own | |
#include <stdint.h> | |
/** | |
* Common Data Types | |
* | |
* The data types in this section are essentially aliases for C/C++ | |
* primitive data types. | |
* |