Skip to content
Snippets Groups Projects
Commit da2a2d97 authored by George Nachman's avatar George Nachman
Browse files

Remove the restriction that inset be less than a cell

parent 5c617ec1
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -3410,10 +3410,10 @@ static NSString *const kInilineFileInset = @"inset"; // NSValue of NSEdgeInsets
int xOffset = self.cursorX - 1;
int screenWidth = currentGrid_.size.width;
NSEdgeInsets fractionalInset = {
.left = MAX(MIN(inset.left / cellSize.width, 1), 0),
.top = MAX(MIN(inset.top / cellSize.height, 1), 0),
.right = MAX(MIN(inset.right / cellSize.width, 1), 0),
.bottom = MAX(MIN(inset.bottom / cellSize.height, 1), 0)
.left = MAX(inset.left / cellSize.width, 0),
.top = MAX(inset.top / cellSize.height, 0),
.right = MAX(inset.right / cellSize.width, 0),
.bottom = MAX(inset.bottom / cellSize.height, 0)
};
screen_char_t c = ImageCharForNewImage(name,
width,
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment