Mercurial > dwindows
view dwcompatw.def @ 909:c092eab43ae3
Experimental change to pixmap rendering. Switch from using NSImage to NSBitmapImageRef to store the image.
This is closer to the core backing store used to display images. Using this I was able to avoid using lockFocus
on the images and instead set the graphics context manually allowing us to draw directly on the backing image.
However NSBitmapImageRef is a more simple format and didn't work with the flipped Y axis... so...
I had to perform some voodoo to get the flipping to work with the graphics context. Not sure it is 100% right.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 20 Apr 2011 14:09:00 +0000 |
parents | d7c338ac926a |
children |
line wrap: on
line source
LIBRARY DWCOMPAT DESCRIPTION 'Dynamic Windows Compatibility Module for Win32' EXPORTS makedir @20 vargs @21 setfileinfo @22 drivefree @23 isdrive @24 drivesize @25 getfsname @26 _opendir @30 _openxdir @31 _readdir @32 _seekdir @33 _telldir @34 _closedir @35 fsopen @40 fsclose @41 fsgets @42 fsseek @43 locale_init @50 locale_string @51 nice_strformat @60 initdir @61 setpath @62