Re: AW: [Visualoberon-win32] Bitmaps
Status: Beta
Brought to you by:
tteuling
|
From: Tim T. <ti...@ed...> - 2001-06-12 19:46:58
|
Hallo!
> It seems that CreateCompatibleBitmap requires the handle on the original
> DC, *not* the compatible DC returned by CreateCompatibleDC. The bitmap
> created with the compatible DC appears to be monochrome so when it it
> blitted into the window DC the result is a dithered image that maps
> black/white to the default foreground/background colour. I guess Windows
> does not regard "compatibility" as transitive.
I used the VisualStudion 5 (reference) documentation while implementing this
and I remember that it was not very clear how things work. When it
worked for me (WireFrame) I thought I got it. Seems like it was not the
case :-/
> The attached Display.Mod corrects the problem in CreateBitmap.
Fine and thank you for your effort. I will integrate the changes into
my local version. I also hope to include the Point-buffer stuff we
discussed on Thursday. If I do I will publish a new version of the X11
version of VO. This will include other changes to certain files
I did while porting. As a result some file currently in the windows
changes can be removed...
--
Gru=DF...
Tim.
|