Jump to content

  • Log In with Google      Sign In   
  • Create Account

PuReInSaNe

Member Since 06 Nov 2012
Offline Last Active Feb 03 2013 11:51 AM

Posts I've Made

In Topic: Bug: Sprite is not drawn correctly

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 and height here:
window = CreateWindowEx( 0,"winmain",	//window class"test",	//title bar
WS_EX_TOPMOST|WS_POPUP|WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_CLIPSIBLINGS|WS_VISIBLE,100, 100,	//x,y coordinate
wr.right - wr.left, // width of the window
wr.bottom - wr.top, // height of the window
0,	//parent window
0,	//menu
g_hInstance,	//application instance
0);	//display the window

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

In Topic: Bug: Sprite is not drawn correctly

18 January 2013 - 02:12 AM

*bump* Bug still exists, does noone know how to fix that or how that bug appears?


In Topic: Bug: Sprite is not drawn correctly

16 January 2013 - 08:33 AM

those are the tiles dimensions, they are correct.

In Topic: Bug: Sprite is not drawn correctly

16 January 2013 - 06:01 AM

Adding
 

				sprite->Draw(texture,&rectanglew,NULL,&D3DXVECTOR3( (float)(x*48)-0.5f, (float)(y*48)-0.5f, 0 ),D3DCOLOR_RGBA(255,255,255, 255)); }
			else if(j == 9&&i == 3||j == 11&&i == 3)
			{
				sprite->Draw(texture,&rectangles,NULL,&D3DXVECTOR3( (float)(x*48)-0.5f, (float)(y*48)-0.5f, 0 ),D3DCOLOR_RGBA(255,255,255, 255)); }
			else
			{
				sprite->Draw(texture,&rectangleg,NULL,&D3DXVECTOR3( (float)(x*48)-0.5f, (float)(y*48)-0.5f, 0 ),D3DCOLOR_RGBA(255,255,255, 255)); }

results in

ag4tjf3nl6y.png

 

now they have a small blurr too. blink.png


In Topic: Which visual Studios 2012 do i need?

16 January 2013 - 04:12 AM

You can open 2010 projects with 2012, if you do, you get a choice to update them to 2012 or to keep them in 2010, your visual studio would then compile them using the 2010 compiler.


PARTNERS