#pragma once #include "..\munga\style.h" //######################################################################## //############################ MFDSplitView ############################## //######################################################################## // // One desktop window showing a single cockpit display, used by SVGA16's // split mode (L4MFDSPLIT=1). The pod hardware packed the five monochrome // MFDs into the color channels of two video outputs and mounted the map // display rotated; on a desktop each display gets its own window instead. // // SVGA16 fills Pixels() (32bpp top-down, sourceWidth x sourceHeight as // passed - already swapped by the caller for the rotated map) and calls // Repaint(). Closing a view window just hides it. // class MFDSplitView { public: MFDSplitView( const char *title, int source_width, int source_height, int client_width, int client_height, int x, int y ); ~MFDSplitView(); Logical TestInstance() const; unsigned long * Pixels() { return pixels; } void Repaint(); protected: void *window; // HWND void *blitInfo; // MFDViewBlit (header + source dims), see .cpp unsigned long *pixels; int sourceWidth, sourceHeight; };