Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
66 user(s) are online (50 user(s) are browsing Forums)

Members: 0
Guests: 66

more...

Support us!

Recent OS4 Files
OS4Depot.net

Report message:*
 

Re: The MiniGL thread

Subject: Re: The MiniGL thread
by Capehill on 2019/3/20 13:31:01

@Daytona675x

Quote:

rInfo.BytesPerRow = -destWidth * bytesPerPixel; // OpenGL starts at the bottom left, not the top left

PIX_FMT pix_fmt=(PIX_FMT)((destFormat-RGBFB_CLUT)+PIXF_CLUT);
IGraphics->ReadPixelArray(&rPort,srcXOffset,srcYOffset,rInfo.Memory,destXOffset,0,rInfo.BytesPerRow,pix_fmt,width,height);


Seems that dstBytesPerRow parameter is uint32, so code looks suspicious. Didn't test though.

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project