Code Monkey home page Code Monkey logo

Comments (14)

circular17 avatar circular17 commented on May 31, 2024

Hmm.. I don't understand because I remember testing it on MacOS. Could it be that it depends on the version of MacOS? See: http://forum.lazarus.freepascal.org/index.php/topic,24239.msg228750.html#msg228750

from bgrabitmap.

lainz avatar lainz commented on May 31, 2024

It is MacOS but also it is Qt5, maybe for that?
@esvignolo offered his machine to test it with TeamViewer if you want, you can contact him on Facebook, is already your friend Esteban Vignolo.

Edit: Sorry, I did not explain, it is using Qt5

from bgrabitmap.

esvignolo avatar esvignolo commented on May 31, 2024

Yes in macos (carbon) a time ago, has the same problem and @circular17 fix it. But this is in macos QT5.

from bgrabitmap.

circular17 avatar circular17 commented on May 31, 2024

So could we use some $IFDEF to check if it is QT5, or any QT?

from bgrabitmap.

esvignolo avatar esvignolo commented on May 31, 2024

I only try with QT5, I don't see any conditional for QT, but, I remove the {$DEFINE BGRABITMAP_RGBAPIXEL} and work fine.

from bgrabitmap.

circular17 avatar circular17 commented on May 31, 2024

I guess it is with all version of QT. What about the following?
{$IFDEF DARWIN}
{$IFNDEF LCLQt}
{$DEFINE BGRABITMAP_RGBAPIXEL}
{$ENDIF}
{$ENDIF}

from bgrabitmap.

esvignolo avatar esvignolo commented on May 31, 2024

Yes, I think that's enough.

from bgrabitmap.

circular17 avatar circular17 commented on May 31, 2024

This works for you?

from bgrabitmap.

lainz avatar lainz commented on May 31, 2024

In the package options maybe using -dBGRABITMAP_BGRAPIXEL is enough, since that avoids defining RGBA order and changing the files.

from bgrabitmap.

circular17 avatar circular17 commented on May 31, 2024

That would be possible. However that implies the user to do something. That's ok for me to change some files.

from bgrabitmap.

circular17 avatar circular17 commented on May 31, 2024

I pushed the change on dev-bgrabitmap. @esvignolo can you confirm it works for you?

from bgrabitmap.

lainz avatar lainz commented on May 31, 2024

Hi @circular17, @esvignolo told me yesterday that was not working, but wait confirmation from him.
Is strange, these defines looks well.

from bgrabitmap.

lainz avatar lainz commented on May 31, 2024

Hi, I tested it and it has with default settings the colors inverted.

from bgrabitmap.

lainz avatar lainz commented on May 31, 2024

Tested some more apps and has the issue of colors even if there's the setting applied.
I will try with cocoa, not qt.

from bgrabitmap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.