WriteChunkyPixels and ObtainBestPen
  • Just looking around
    Posts: 12 from 2017/8/9
    Hi all,

    I am picking up work again on a port I'd started 8 years ago. I started the port on my A4000T then moved to my A1200 and now I'm doing the development on MorphOS (but still using CED and SAS/C for now).

    When my program is in a window on the Workbench screen, I am pushing pixels from its framebuffer using WriteChunkyPixels().

    Last night I tried to get the colors correct by obtaining a number of pens using ObtainBestPen() (following piru's example I found somewhere), but the colors didn't seem to change.

    Does anyone know: is it possible to change the colors resulting from WriteChunkyPixels() by using ObtainBestPen()? Perhaps it is, and I just overlooked something...

    Of course, once I can get past the hurdle of making this work on non-RTG systems, I will adapt it to CGX/RTG and make a MorphOS-native version.

    Thanks
  • »04.06.18 - 16:35
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    polluks
    Posts: 369 from 2007/10/23
    From: Gelsenkirchen,...
    How about this example?
    Pegasos II G4: MorphOS 3.9, Zalman M220W
    Power Mac G3: OSX 10.3 · PowerBook 5,8: OSX 10.5, MorphOS 3.10
  • »04.06.18 - 18:45
    Profile