Sorry, I'm new to game programming (though I'm a programmer as a career), so this may be a dumb question. I created a 480x272 bitmap in mspaint and used ConvImage16 to convert it to a *.c file, brought that into bitmap.c from the hello world source code and compiled it.
On the psp, my image appears, but way too big. What am I doing wrong? I want the image to be 480x272, I know I'm missing something obvious...any help would be appreciated.
Displaying a bmp at full resolution, newbie question
-
- Posts: 197
- Joined: Fri Jul 01, 2005 2:50 am
no, checked it out and it's set to 1, here are the constants:
//constants
#define PIXELSIZE 1 //in short
#define LINESIZE 512 //in short
#define FRAMESIZE 0x44000 //in byte
//480*272 = 60*38
#define CMAX_X 60
#define CMAX_Y 38
#define CMAX2_X 30
#define CMAX2_Y 19
#define CMAX4_X 15
#define CMAX4_Y 9
//constants
#define PIXELSIZE 1 //in short
#define LINESIZE 512 //in short
#define FRAMESIZE 0x44000 //in byte
//480*272 = 60*38
#define CMAX_X 60
#define CMAX_Y 38
#define CMAX2_X 30
#define CMAX2_Y 19
#define CMAX4_X 15
#define CMAX4_Y 9
Re: Displaying a bmp at full resolution, newbie question
what are you using to display it on the screen? whats the function call look like and whats the function itself look like?wilef wrote:Sorry, I'm new to game programming (though I'm a programmer as a career), so this may be a dumb question. I created a 480x272 bitmap in mspaint and used ConvImage16 to convert it to a *.c file, brought that into bitmap.c from the hello world source code and compiled it.
On the psp, my image appears, but way too big. What am I doing wrong? I want the image to be 480x272, I know I'm missing something obvious...any help would be appreciated.
if you are using pgBitBlit thats in some of the stuff maybe you are calling it with a magnitude of more than 1 so its stretching out the bitmap.