Skip to content

Commit e669d91

Browse files
authored
Merge pull request #86 from jayrm/bugfix-857
#857: fix PAINT used in a VIEWport causing segfault
2 parents 537e842 + ee938e2 commit e669d91

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Version 1.06.0
4949
- #846: Fix compiler crash on global variable initializer with type<T>(...) expression where T isn't a UDT
5050
- #847: Windows API binding: Fixed winnt.bi SECURITY_*_AUTHORITY initializers
5151
- #851: '#LINE line filename' only changed the source filename in error messages, not in debug info
52+
- #857: PAINT used in a VIEWport and without delimitation border induces segmentation violation when ending code
5253
- #832: Fix bug allowing QB style suffixes on all keywords, regardless of -lang
5354
- #841: The unary negation operator gave different result signedness when used on constant instead of non-constant expression. Now the result is always signed.
5455
- Incorrect C++ mangling for BYREF parameters using built-in types

src/gfxlib2/gfx_paint.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ FBCALL void fb_GfxPaint(void *target, float fx, float fy, unsigned int color, un
149149
}
150150

151151
if (__fb_gfx->framebuffer == context->line[0])
152-
__fb_gfx->dirty[context->view_y + y] = TRUE;
152+
__fb_gfx->dirty[y] = TRUE;
153153
}
154154
}
155155
free(span);

0 commit comments

Comments
 (0)