• Create Account

### #ActualPuReInSaNe

Posted 18 January 2013 - 09:13 AM

Right, the backbuffer had some problems.

I removed this:
PresentParams.BackBufferWidth = width; // set the width of the buffer
PresentParams.BackBufferHeight = height; // set the height of the buffer


Because of PresentParams.windowed = true; the BackBufferWidth and Height is set automatical.

Also I changed the width and height here:
window = CreateWindowEx( 0,"winmain",	//window class"test",	//title bar
wr.right - wr.left, // width of the window
wr.bottom - wr.top, // height of the window
0,	//parent window
g_hInstance,	//application instance
0);	//display the window

to the variables width, and height. Dunno why I made a rectangle there.

### #4PuReInSaNe

Posted 18 January 2013 - 09:13 AM

Right, the backbuffer had some problems.

I removed this:
PresentParams.BackBufferWidth = width; // set the width of the bufferPresentParams.BackBufferHeight = height; // set the height of the buffer
Because of PresentParams.windowed = true; the BackBufferWidth and Height is set automatical.

Also I changed the width and height here:
window = CreateWindowEx( 0,"winmain",	//window class"test",	//title bar
wr.right - wr.left, // width of the window
wr.bottom - wr.top, // height of the window
0,	//parent window
g_hInstance,	//application instance
0);	//display the window

to the variables width, and height. Dunno why I made a rectangle there.

### #3PuReInSaNe

Posted 18 January 2013 - 09:12 AM

Right, the backbuffer had some problems.

I removed this:

PresentParams.BackBufferWidth = width; // set the width of the bufferPresentParams.BackBufferHeight = height; // set the height of the buffer

Because of PresentParams.windowed = true; the BackBufferWidth and Height is set automatical.

Also I changed the width and height here:

window = CreateWindowEx( 0,"winmain",	//window class"test",	//title barWS_EX_TOPMOST|WS_POPUP|WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_CLIPSIBLINGS|WS_VISIBLE,100, 100,	//x,y coordinatewr.right - wr.left, // width of the windowwr.bottom - wr.top, // height of the window0,	//parent window0,	//menug_hInstance,	//application instance0);	//display the window

to the variables width, and height. Dunno why I made a rectangle there.

### #2PuReInSaNe

Posted 18 January 2013 - 09:12 AM

Right, the backbuffer had some problems.

I removed this:

PresentParams.BackBufferWidth = width; // set the width of the bufferPresentParams.BackBufferHeight = height; // set the height of the buffer
Because of PresentParams.windowed = true; the BackBufferWidth and Height is set automatical.

Also I changed the width and height here:
window = CreateWindowEx( 0,"winmain",	//window class"test",	//title barWS_EX_TOPMOST|WS_POPUP|WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_CLIPSIBLINGS|WS_VISIBLE,100, 100,	//x,y coordinatewr.right - wr.left, // width of the windowwr.bottom - wr.top, // height of the window0,	//parent window0,	//menug_hInstance,	//application instance0);	//display the window
to the variables width, and height. Dunno why I made a rectangle there.

### #1PuReInSaNe

Posted 18 January 2013 - 09:11 AM

Right, the backbuffer had some problems.

I removed this:

PresentParams.BackBufferWidth = width; // set the width of the buffer
PresentParams.BackBufferHeight = height; // set the height of the buffer

Because of PresentParams.windowed = true; the BackBufferWidth and Height is set automatical.

Also I changed the width her:

	window = CreateWindowEx( 0,
"winmain",	//window class
"test",	//title bar
100, 100,	//x,y coordinate
wr.right - wr.left, // width of the window
wr.bottom - wr.top, // height of the window
0,	//parent window
//display the window