PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

can't get 480*640

Hi. Several days ago I got ipaq hx4700, and I found something weird. hx4700 has 480*640 screen, you know, but when I made a simple project with evc++, and GetWindowRect() showed me the 240*320 resolution. I'd like to render some images with OpenGL ES, but the windows CE can't get the window 480*640 resolution. Maybe I can't draw the 480*640 images because of that.

I can make the window like :
CreateWindow(szWindowClass, szTitle, WS_VISIBLE, 0, 0, 480, 640, NULL, NULL, hInstance, NULL);

but still the screen is 240*320, so I can see just 1/4 area of the window that I made. In fact, this has a problem with OpenGL ES.
What can I do for this situation? I test PocketHAL, but it has the same problem. (240*320)

Thank you for your advices in advance.
Windows CE 4 default resolution is 240x320. You have to simply add a stupid resource to your project, in order to let the OS know that he has to switch to 480x640. The resource name is HI_RES_AWARE. Google for that, you'll find some explains.

I read on Hybrid forum that you are using their implemention: don't bother, hi-res works seamlessly once you add this resource and create a 480x640 window (and only that: full-screen opengl, no windowed mode with Gerbera [at least, if it is possible pls explain me how... :( ]).
matt99 · 06 Sep 2005, 08:57 UTC — Oh, it works!
I really appreciated your words. I found it from here :
http://msdn.microsoft.com/library/defau ... reness.asp

And it says :


To add the HI_RES_AWARE resource item to your program

1. From the Insert menu, select Resource.
2. Click the Custom button.
3. Enter CEUX for the resource type.
4. Set the resource data to 01 00.
5. Click the Properties tab.
6. Rename the item to "HI_RES_AWARE", including quotes. (If the quotes are omitted, HI_RES_AWARE will be incorrectly defined as a numeric value in resource.h, and you will need to go back and delete the line from resource.h.)
7. Deselect the external file checkbox.


Thanks again, Socrates :lol: