PocketMatrix forums

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

Does E740's kfDirect555 or kfDirect565 ?

Dear all,

My friend told me that my game does not work with his e740. I guess that its ffFormat is neither kfDirect555 or kfDirect565, so my program stops and complain about it. Since I don't have access e740, I wonder if someone can tell me what e740 does return on ffFormat.

Is it a problem if I include the gx.dll in my program installation?
pacomac · 04 Apr 2003, 20:59 UTC — Does E740's kfDirect555 or kfDirect565 ?
JoJo wrote:
Dear all,

My friend told me that my game does not work with his e740. I guess that its ffFormat is neither kfDirect555 or kfDirect565, so my program stops and complain about it. Since I don't have access e740, I wonder if someone can tell me what e740 does return on ffFormat.

Is it a problem if I include the gx.dll in my program installation?


Someone shoot me if I am wrong but I think all Pocket PC devices to date are 555 format.
I think actually that all current devices are 565.

BANG!

(Now, we'll just have to see if that shot hit you or me! :) )
Nah... the O2 XDA/TMobile is 12-bit.

NOW where did the shot go?
Damian wrote:
Nah... the O2 XDA/TMobile is 12-bit.

NOW where did the shot go?


Hey guys, put the guns down: does it actually matter if they are 12-bit, 15-bit or 16-bit?

15/16/24/32 used to matter on the PC a great deal, but effectively on Pocket PCs you just write 565 data, and the Pocket PC ignores the bits when it doesn't have the accuracy.
Should I just ignore the ffFormat from GXGetDisplayProperties()?

Does it mean Toshiba's E740 return incorrect value in ffFormat field from GXGetDisplayProperties?
Here's the spew from my GAPIInfo app for an e740:

SPI_GETOEMINFO = TOSHIBA e740
SPI_GETPLATFORMTYPE = PocketPC
GetSystemInfo:
dwOemId 00000005
wProcessorArchitecture 00000005
wReserved 00000000
dwPageSize 00001000
lpMinimumApplicationAddress 00010000
lpMaximumApplicationAddress 7fffffff
dwActiveProcessorMask 00000001
dwNumberOfProcessors 00000001
dwProcessorType 00000a11
dwAllocationGranularity 00010000
wProcessorLevel 00000004
wProcessorRevision 00000003

************************************************

GXDisplayProperties
cxWidth = 240
cyHeight = 320
cbxPitch = 2
cbyPitch = 480
cBPP = 16
ffFormat = 0x00000080 (kfDirect565)

GXIsDisplayDRAMBuffer returns 0x00000000 (FALSE)

GXBeginDraw returns 0x48102200

************************************************

GXKeyList
vkUp = 0x0026
ptUp = (120, 260)
vkDown = 0x0028
ptDown = (120, 300)
vkLeft = 0x0025
ptLeft = (100, 280)
vkRight = 0x0027
ptRight = (140, 280)
vkA = 0x00C1
ptA = (30, 260)
vkB = 0x00C2
ptB = (70, 260)
vkC = 0x00C4
ptC = (220, 260)
vkStart = 0x00C5
ptStart = (20, 20)

************************************************
Thanks a lot. The information is very helpful. My routine also check if it support kfDirect. It seems that the e740 does not support kfDirect.

I wonder if someone can tell me what is the different between kfDirect and non-kfDirect device.
kfDirect means blitting directly to the screens memory. Some devices however use a buffer which is then swizzled to the screen or just flipped, depending on hardware, etc.

I believe the e740s are the ones with the ATI mobile piece-of-shit graphics chip and as such is likely double buffered. Thus why it doesn't support kfDirect. These various configs, etc, are why I use GapiDraw for my graphics blitters. I wrote a rather extensive 2D library about a year ago for these devices and when the PPC2002 devices came out I decided to say screw it and use someone else's.

Middleware is your friend.