Skip to content

Commit

Permalink
add make cmd for dmg -> fully functional dmg
Browse files Browse the repository at this point in the history
  • Loading branch information
ju6ge committed Sep 24, 2020
1 parent 60494a4 commit dbea0db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ IF(BUILD_OSX_BUNDLE)
PROPERTIES
RESOURCE "extra/rbdl-toolkit.icns"
)
ADD_CUSTOM_TARGET(dmg
BYPRODUCTS rbdl-toolkit.dmg rbdl-toolkit.app
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/mk_dmg.sh
)
ELSE(BUILD_OSX_BUNDLE)
ADD_EXECUTABLE ( rbdl-toolkit
${Toolkit_SRCS}
Expand Down
2 changes: 1 addition & 1 deletion plugins/RenderPlugin/RenderPlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void RenderPlugin::init_offscreen_render_surface(int width, int height) {
}

void RenderPlugin::check_image_size(QImage& img) {
if ( img.width() > current_width && img.height() > current_height ) {
if ( img.width() != current_width && img.height() != current_height ) {
img = img.scaled(current_width, current_height);
}
}
Expand Down

0 comments on commit dbea0db

Please sign in to comment.