diff options
author | Daniel Jones <admin@danieljon.es> | 2020-06-26 22:38:57 +0930 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2020-06-26 22:38:57 +0930 |
commit | a23260530d5e14bb965ee88a15fc1db911844db8 (patch) | |
tree | 9a28932e6099c6795661b2dae8c130d1e21d0c39 | |
parent | 4399221be98064d075f92f9c9a0b4cbbcc9f4775 (diff) | |
download | foxlogicgates-a23260530d5e14bb965ee88a15fc1db911844db8.tar.gz foxlogicgates-a23260530d5e14bb965ee88a15fc1db911844db8.zip |
fix black border
-rw-r--r-- | MainWindow.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/MainWindow.cpp b/MainWindow.cpp index eaf1286..0c2292d 100644 --- a/MainWindow.cpp +++ b/MainWindow.cpp @@ -86,9 +86,8 @@ MainWindow::create_ui() scroll_area = new FXScrollWindow(canvasFrame, FX::SCROLLERS_NORMAL|LAYOUT_FILL_X|LAYOUT_FILL_Y); scroll_area->setBackColor(canvasFrame->getBackColor()); - FXPacker *canvas_packer = new FXPacker(scroll_area, LAYOUT_FILL_X|LAYOUT_FILL_Y); - canvas_packer->setBackColor(scroll_area->getBackColor()); - canvas = new FXCanvas(canvas_packer, this, ID_CANVAS, LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT|FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y, 0, 0, 2048, 2048); + FXPacker *canvas_packer = new FXPacker(scroll_area, LAYOUT_FILL_X|LAYOUT_FILL_Y, 0, 0, 2048, 2048); + canvas = new FXCanvas(canvas_packer, this, ID_CANVAS, LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT|LAYOUT_FILL_X|LAYOUT_FILL_Y, 0, 0, 2048, 2048); canvas_image = new FXBMPImage(app, NULL, 0, 2048, 2048); @@ -152,7 +151,7 @@ MainWindow::draw() FXDCWindow dc_image(canvas_image); dc_image.setFont(getApp()->getNormalFont()); dc_image.setForeground(FXRGB(255, 255, 255)); - dc_image.fillRectangle(canvas->getX(), canvas->getY(), canvas->getWidth(), canvas->getHeight()); + dc_image.fillRectangle(canvas->getX()-10, canvas->getY()-10, canvas->getWidth()+10, canvas->getHeight()+10); // -+10 to fix black border dc_image.setForeground(FXRGB(0,0,0)); bool drawn_special_link = false; |