Page 2 of 2

Re: SYS_GetFontTexture & SYS_GetFontTexel

Posted: Wed Jan 28, 2009 1:12 pm
by shagkur
Hi,

thanks for the test. I'll take the 1st way of implmentation (**font_header).

About the xpos += 2: that i really don't get. We do byte-wise copy and 2 I4 pixels are stored in one byte. Won't we only copy every 2nd pixel pair then?

regards
shagkur

Re: SYS_GetFontTexture & SYS_GetFontTexel

Posted: Wed Jan 28, 2009 2:32 pm
by Eke
nope, because xpos is a pixel counter, not a byte one

since one byte is two pixels, we are copying two pixels on each step so this is not necessary to do this for each pixel but only for each pair of pixels, hence the +2

Re: SYS_GetFontTexture & SYS_GetFontTexel

Posted: Wed Jan 28, 2009 2:57 pm
by shagkur
yeah, you're right. i should look twice before i post stupid questions :/

thanks alot for your help.