I agree, the ads have got to go. as for the code boxes, let me see what teh fuss is about
Code:
#include <windows.h>
/*
void DrawFrame(HDC hdc){
HDC hdcMemory;
hdcMemory = CreateCompatibleDC(hdc);
//hdc = GetDC( hwnd );
hbmNoSignal = CreateDIBitmap(hdc , (BITMAPINFOHEADER *)&bufNoSignal[2] , CBM_INIT , &bufNoSignal[54] , (BITMAPINFO *)&bufNoSignal[2] , DIB_RGB_COLORS );
//ReleaseDC( hwnd , hdc );
SelectObject(hdcMemory, hbmNoSignal);
BitBlt(hdc, BMPX, BMPY, bm.bmWidth, bm.bmHeight, hdcMemory, 0, 0, SRCCOPY);
DeleteDC(hdcMemory);
}
/*
void fglInitialize(int bufferWidth, int bufferHeight)
{
HDC hDC;
BITMAPINFO bitmapinfo;
hDC = CreateCompatibleDC(NULL);
gBufferWidth = bufferWidth;
gBufferHeight = bufferHeight;
//gViewportWidth = bufferWidth;
//gViewportHeight = bufferHeight;
bitmapinfo.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
bitmapinfo.bmiHeader.biWidth = bufferWidth;
bitmapinfo.bmiHeader.biHeight = -bufferHeight;
bitmapinfo.bmiHeader.biPlanes = 1;
bitmapinfo.bmiHeader.biBitCount = 24;
bitmapinfo.bmiHeader.biCompression = BI_RGB;
bitmapinfo.bmiHeader.biSizeImage = 0;
bitmapinfo.bmiHeader.biClrUsed = 0;
bitmapinfo.bmiHeader.biClrImportant = 0;
gOurBitmap = CreateDIBSection(hDC, &bitmapinfo, DIB_RGB_COLORS, &gFrameBuffer0, 0, 0);
gPDC = CreateCompatibleDC(NULL);
gOld = SelectObject(gPDC, gOurBitmap);
DeleteDC(hDC);
}
// -----------------------------------------------------------------------------
// This function is called each frame, and is supposed to draw gFrameBuffer0 to the screen
void fglSwapBuffers()
{
PAINTSTRUCT paintStruct;
HDC hDC = BeginPaint(GetActiveWindow(), &paintStruct);
BitBlt(hDC, 0, 0, gBufferWidth, gBufferHeight, gPDC, 0, 0, SRCCOPY);
EndPaint(GetActiveWindow(), &paintStruct);
}
//*/
I dont notice the scrolling boxes, what are you talkign about?