Search found 106 matches

by Musi
April 3rd, 2013, 6:13 pm
Forum: Everything
Topic: How to change application to fullscreen
Replies: 18
Views: 7651

Re: How to change application to fullscreen

Ah, a couple of problems. I see you've called AdjustWindowRect(); three times, you should only adjust the RECT once. This function increases the dimensions of the RECT to allow for the windows border depending on what window style you pass it. You've also added the styles WS_POPUP and WS_OVERLAPPEDW...
by Musi
April 3rd, 2013, 3:40 pm
Forum: Everything
Topic: How to change application to fullscreen
Replies: 18
Views: 7651

Re: How to change application to fullscreen

Would you mined if i have a look at you're project?
by Musi
April 3rd, 2013, 3:37 pm
Forum: Everything
Topic: Question in regards to posting
Replies: 1
Views: 1363

Re: Question in regards to posting

I'm sure its fine, we're all here to learn programming no matter what tools are used. :D
by Musi
April 1st, 2013, 7:49 am
Forum: Everything
Topic: Beginning Error
Replies: 5
Views: 2608

Re: Beginning Error

See if you can see it in the SDK folder. Open your main hardrive >> Program files(X86) >> Microsoft DirectX SDK (June 2010) >> Lib >> check in x86 and x64 for the DxErr file. If all ells fails and you just want to get it working, it should be safe to remove that library from the program dependencies...
by Musi
March 31st, 2013, 5:49 pm
Forum: Everything
Topic: How to change application to fullscreen
Replies: 18
Views: 7651

Re: How to change application to fullscreen

To make the window full screen you just have to change the window style to WS_POPUP and set the position to 0,0 and the width and height to match the screen. In Windows.cpp you should see a call to CreateWindow(); where you can set the style, position etc. Also if you want to change to full screen d...
by Musi
March 20th, 2013, 7:48 am
Forum: Everything
Topic: treading a background
Replies: 4
Views: 2315

Re: treading a background

Just to say, i've never used threads but... Having the background in a separate thread doesn't really make sense. If the main thread has to wait for it to be drawn anyway, it doesn't really speed up anything. And if the main thread doesn't wait it sound like you could get problems like tearing, or t...
by Musi
March 14th, 2013, 7:27 pm
Forum: Everything
Topic: loading png files
Replies: 5
Views: 2635

Re: loading png files

From what i've read most games use whats called the Graphics Pipeline to render graphics. It works directly with the graphics card and is much faster. I think chili was gonna get there eventually.
by Musi
March 14th, 2013, 6:48 am
Forum: Everything
Topic: Help with constructors.
Replies: 8
Views: 3485

Re: Help with constructors.

In Surface.h remove #include "SurfaceSequence.h". You can't have two header files that include each other. If both files depend on each other a way to get around this is first make a forward declaration of the SerfaceSequence class in Surface.h, then #include SurfaceSequence.h in the Surface.cpp fil...
by Musi
March 13th, 2013, 8:15 pm
Forum: Everything
Topic: loading png files
Replies: 5
Views: 2635

Re: loading png files

If you get to intermediate lesson 2 Chili shows you how to load a png using GDI and also writes a function to draw transparent sprites.
by Musi
March 5th, 2013, 7:32 am
Forum: Everything
Topic: Removing a drawn pixel
Replies: 5
Views: 2756

Re: Removing a drawn pixel

Hmm, can't say why the new X variable is updating without seeing the code. If i have to guess, id say you're making the pixels X coordinate = players X coordinate every frame when it should only be done once when its created.