Skip to content

Commit

Permalink
v2.2: Fixed Mac app, enabled updates
Browse files Browse the repository at this point in the history
  • Loading branch information
MCJack123 committed Dec 15, 2019
1 parent c059591 commit aa868f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extern "C" {
}

#define CRAFTOSPC_VERSION "v2.2"
#define CRAFTOSPC_INDEV true
#define CRAFTOSPC_INDEV false

class Computer;
typedef struct library {
Expand Down
2 changes: 1 addition & 1 deletion src/platform_macapp.mm
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ void copyImage(SDL_Surface* surf) {
img.set_pixbuf(pixbuf);
std::stringstream ss;
img.write_stream(ss);
NSData * nsdata = [NSData dataWithBytes:ss.str().c_str() length:width*height*3];
NSData * nsdata = [NSData dataWithBytes:ss.str().c_str() length:surf->w*surf->h*3];
NSImage * nsimg = [[NSImage alloc] initWithData:nsdata];
NSArray * arr = [NSArray arrayWithObject:nsimg];
[[NSPasteboard generalPasteboard] clearContents];
Expand Down

0 comments on commit aa868f7

Please sign in to comment.