Recent

Author Topic: [SOLVED] Program runs smoothly on Linux, but not on Windows  (Read 3484 times)

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: Program runs smoothly on Linux, but not on Windows
« Reply #15 on: August 26, 2019, 07:43:40 pm »
Very strange!

wp

  • Hero Member
  • *****
  • Posts: 13584
Re: Program runs smoothly on Linux, but not on Windows
« Reply #16 on: August 26, 2019, 07:55:22 pm »
Why? The GDI is a packet full of surprises.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12430
  • Debugger - SynEdit - and more
    • wiki
Re: Program runs smoothly on Linux, but not on Windows
« Reply #17 on: August 26, 2019, 09:17:20 pm »
Maybe related to ???
https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-extcreatepen
Quote
A geometric pen can have any width and can have any of the attributes of a brush, such as dithers and patterns. A cosmetic pen can only be a single pixel wide and must be a solid color, but cosmetic pens are generally faster than geometric pens.

munair

  • Hero Member
  • *****
  • Posts: 887
  • compiler developer @SharpBASIC
    • SharpBASIC
Re: Program runs smoothly on Linux, but not on Windows
« Reply #18 on: August 26, 2019, 11:14:58 pm »
Thanks for the additional info regarding cosmetic/geometric pens. Perhaps it would be an idea to limit the cosmetic pen on Windows to 1px?

I also managed to get the screenshot function working on both Linux and Windows. It wasn't really difficult, but as with everything, you just need to know how.

In case anyone is interested in this as an example project: https://ditrianum.org/downloads/aeview-1.0.0.45.zip
« Last Edit: February 12, 2020, 11:57:59 am by Munair »
It's only logical.

 

TinyPortal © 2005-2018