mirror of
https://github.com/CamHenlin/MessagesForMacintosh.git
synced 2025-02-21 09:29:00 +00:00
more debugging in nk_command_rect after another crash
This commit is contained in:
parent
069ba4fd70
commit
bcee165621
BIN
dist/MessagesForMacintosh.dsk
vendored
BIN
dist/MessagesForMacintosh.dsk
vendored
Binary file not shown.
BIN
dist/MessagesForMacintosh.zip
vendored
BIN
dist/MessagesForMacintosh.zip
vendored
Binary file not shown.
@ -555,6 +555,7 @@ void updateBounds(int top, int bottom, int left, int right) {
|
|||||||
// http://mirror.informatimago.com/next/developer.apple.com/documentation/mac/QuickDraw/QuickDraw-102.html#MARKER-9-372
|
// http://mirror.informatimago.com/next/developer.apple.com/documentation/mac/QuickDraw/QuickDraw-102.html#MARKER-9-372
|
||||||
// http://mirror.informatimago.com/next/developer.apple.com/documentation/mac/QuickDraw/QuickDraw-103.html#HEADING103-0
|
// http://mirror.informatimago.com/next/developer.apple.com/documentation/mac/QuickDraw/QuickDraw-103.html#HEADING103-0
|
||||||
const struct nk_command_rect *r = (const struct nk_command_rect *)cmd;
|
const struct nk_command_rect *r = (const struct nk_command_rect *)cmd;
|
||||||
|
writeSerialPortDebug(boutRefNum, "NK_COMMAND_RECT2");
|
||||||
|
|
||||||
#ifdef COMMAND_CACHING
|
#ifdef COMMAND_CACHING
|
||||||
|
|
||||||
@ -567,21 +568,26 @@ void updateBounds(int top, int bottom, int left, int right) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
writeSerialPortDebug(boutRefNum, "NK_COMMAND_RECT3");
|
||||||
|
|
||||||
ForeColor(r->color);
|
ForeColor(r->color);
|
||||||
PenSize(r->line_thickness, r->line_thickness);
|
PenSize(r->line_thickness, r->line_thickness);
|
||||||
|
writeSerialPortDebug(boutRefNum, "NK_COMMAND_RECT4");
|
||||||
|
|
||||||
Rect quickDrawRectangle;
|
Rect quickDrawRectangle;
|
||||||
quickDrawRectangle.top = r->y;
|
quickDrawRectangle.top = r->y;
|
||||||
quickDrawRectangle.left = r->x;
|
quickDrawRectangle.left = r->x;
|
||||||
quickDrawRectangle.bottom = r->y + r->h;
|
quickDrawRectangle.bottom = r->y + r->h;
|
||||||
quickDrawRectangle.right = r->x + r->w;
|
quickDrawRectangle.right = r->x + r->w;
|
||||||
|
writeSerialPortDebug(boutRefNum, "NK_COMMAND_RECT5");
|
||||||
|
|
||||||
#ifdef ENABLED_DOUBLE_BUFFERING
|
#ifdef ENABLED_DOUBLE_BUFFERING
|
||||||
updateBounds(quickDrawRectangle.top, quickDrawRectangle.bottom, quickDrawRectangle.left, quickDrawRectangle.right);
|
updateBounds(quickDrawRectangle.top, quickDrawRectangle.bottom, quickDrawRectangle.left, quickDrawRectangle.right);
|
||||||
#endif
|
#endif
|
||||||
|
writeSerialPortDebug(boutRefNum, "NK_COMMAND_RECT6");
|
||||||
|
|
||||||
FrameRoundRect(&quickDrawRectangle, r->rounding, r->rounding);
|
FrameRoundRect(&quickDrawRectangle, r->rounding, r->rounding);
|
||||||
|
writeSerialPortDebug(boutRefNum, "NK_COMMAND_RECT7 (done)");
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user