FLTK logo

[fltk/fltk] [Linux] Different Fl_Window::resize() behavior between v1.3.8 and v1.4.0 (Issue #471)

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 ]

[fltk/fltk] [Linux] Different Fl_Window::resize() behavior between v1.3.8 and v1.4.0 (Issue #471) "Giovanni A. Zuliani" Jul 22, 2022  
 

Debian 11
X.Org version: 1.20.11

The following example:

#include <FL/Fl.H>
#include <FL/Fl_Window.H>

int main(int argc, char** argv) {
  Fl_Window* window = new Fl_Window(100, 100);
  window->end();
  window->show(argc, argv);
  window->resize(0, 0, 800, 600); // <---------
  return Fl::run();
}

With FLTK 1.3.8: the window shows up at position (0, 0), 800x600 pixels as expected.

With FLTK 1.4.0 commit 2cedae1: the window shows up in the middle of the screen, 100x100 window (the original unchanged size).


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/issues/471@github.com>

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'.