FLTK logo

Re: [fltk/fltk] Scaled window dimensions off by 1 (#123)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] Scaled window dimensions off by 1 (#123) wcout Nov 25, 2020  
 

Oh, thanks for tackling this issue, I will certainly try, when time permits...

I'm getting a warning when compiling, that is new I think:

Compiling drivers/X11/Fl_X11_Screen_Driver.cxx...
drivers/X11/Fl_X11_Screen_Driver.cxx: In member function ‘virtual Fl_RGB_Image* Fl_X11_Screen_Driver::read_win_rectangle(int, int, int, int, Fl_Window*, bool, bool*)’:
drivers/X11/Fl_X11_Screen_Driver.cxx:726:9: warning: sy’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  726 |     off = a - b;
      |     ~~~~^~~~~~~
drivers/X11/Fl_X11_Screen_Driver.cxx:789:21: note: sy’ was declared here
  789 |     int dx, dy, sx, sy, sw, sh;
      |                     ^~

Certainly it stems from line 821, where sy is passed as first parameter to fl_subimage_offsets But why does it not warn for sx in the line before? Maybe a compiler glitch?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.