| Author | beginning argument ( Replies received: 1 ) |
| BenVC |
Posted 06-10-2006 at 13:06   |

Registered on : 10-06-2006
From UK (United Kingdom)
Messages : 2
OFF-Line
|
I am having trouble copying a bitmap, defined in a header file, to the graphics layer. I can copy one 100*80 successfully. I have another 320*50 and this fails if I try to copy it all. It creates a black box where the bitmap should be. If I reduce the length of the bitmap it works OK. The amount I have to trim it by seems to vary with build. I have used this bitmap before on an ST20 project and I have once managed to display the whole thing on the ST40 (ST7100REF). I have used STBLIT_CopyRectangle() and STAVMEM_CopyBlock2D() with the same result. ARGB1555 format used.
Any suggestions?
|
|
|
Profile
Quote
|
| BenVC |
Posted 06-10-2006 at 16:48   |

Registered on : 10-06-2006
From UK (United Kingdom)
Messages : 2
OFF-Line
|
Oh yes. If I address a 1D array as 100 by 64, it displays correctly. If I try to display the same data as 400 by 16, it fails to copy anything to the screen. (obviously it wouldn't look right, but I should still see the right colours etc.) And I did check that the output array is not outside the destination bitmap, the main one being 1920 * 1080.
Very odd.
|
|
|
Profile
Quote
|