Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Issues with dbSetCurrentBitmap combined with dbGetPixelsPointer

Author
Message
ChiliPip
13
Years of Service
User Offline
Joined: 21st Sep 2010
Location:
Posted: 21st Sep 2010 08:33
Help!

I actually have two issues to report the first concerns trying to use dbGetPixelsPointer or dbGetPixelsPitch. These don't seem to work without having first drawn to the screen canvas.

The second problem: after drawing to a created bitmap (e.g ID =1), then setting the current bitmap back to the screen, any "direct" drawing using dbGetPixelsPointer will draw to the bitmap and not the screen. The following code snippet illustrates both issues (and essentially the aqua line should not be visible!)





Also, here is the code for my DrawLineDirect function and macros:



Thanks in advance and I hope there is something I am doing wrong rather than a bug.

Cheers.

Login to post a reply

Server time is: 2024-07-02 08:31:15
Your offset time is: 2024-07-02 08:31:15