Skip to content

Commit

Permalink
Moving the ConfigWindow display to Fl_Double_Window from Fl_Cairo_Win…
Browse files Browse the repository at this point in the history
…dow which has issues redrawing the widgets on Big Sur
  • Loading branch information
maxieds committed Jan 23, 2022
1 parent fcff4e9 commit 4497efe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build-scripts/BuildTargetInfo.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
#define __STRUCTVIZ_INSTALL_SIGSEGV_HANDLER 1
#define __STRUCTVIZ_INSTALL_CTRLC_HANDLER 1

#define RNASTRUCTVIZ_VSTRING ("🧬 RNAStructViz v2.4.16-stable -- RNA Secondary Structure Comparison Multi-Tool")
#define RNASTRUCTVIZ_VSTRING ("🧬 RNAStructViz v2.4.17-stable -- RNA Secondary Structure Comparison Multi-Tool")

#define HUGE_BUFFER_LINE_SIZE (2048)

Expand Down
4 changes: 2 additions & 2 deletions src/DisplayConfigWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ char * DisplayConfigWindow::TrimFilePathDisplay(const char *path, int maxlen = C
}

DisplayConfigWindow::DisplayConfigWindow() :
Fl_Cairo_Window(CONFIG_WINDOW_WIDTH, CONFIG_WINDOW_HEIGHT),
Fl_Double_Window(CONFIG_WINDOW_WIDTH, CONFIG_WINDOW_HEIGHT),
finished(false), pngNewPathIcon(NULL), imageData(NULL) {

//Fl::visual(FL_RGB | FL_DEPTH | FL_DOUBLE | FL_MULTISAMPLE | FL_INDEX);
Expand All @@ -186,7 +186,7 @@ DisplayConfigWindow::DisplayConfigWindow() :
size_range(CONFIG_WINDOW_WIDTH, CONFIG_WINDOW_HEIGHT);
set_modal();
callback(WindowCloseCallback);
set_draw_cb(Draw);
//set_draw_cb(Draw);
//Fl::cairo_make_current(this);

ConstructWindow();
Expand Down
3 changes: 2 additions & 1 deletion src/DisplayConfigWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <cairo.h>

#include <FL/Fl_Widget.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Cairo.H>
#include <FL/Fl_Cairo_Window.H>
#include <FL/Fl_Button.H>
Expand All @@ -36,7 +37,7 @@
#define CFGWIN_CDIALOG_HEIGHT (250)
#define CFGWIN_MAX_FPATH_LENGTH (256)

class DisplayConfigWindow : public Fl_Cairo_Window {
class DisplayConfigWindow : public Fl_Double_Window {

public:
static bool SetupInitialConfig();
Expand Down

0 comments on commit 4497efe

Please sign in to comment.