diff --git a/uppsrc/CtrlLib/PrinterJob.cpp b/uppsrc/CtrlLib/PrinterJob.cpp index dbfedf59b..47ba571d9 100644 --- a/uppsrc/CtrlLib/PrinterJob.cpp +++ b/uppsrc/CtrlLib/PrinterJob.cpp @@ -24,7 +24,7 @@ namespace Upp { struct Win32PrintDlg_ : PRINTDLG { Win32PrintDlg_() { - memset(this, 0, sizeof(PRINTDLG)); + memset((void *)this, 0, sizeof(PRINTDLG)); lStructSize = sizeof(PRINTDLG); } ~Win32PrintDlg_() { diff --git a/uppsrc/ide/Debuggers/Visualise.cpp b/uppsrc/ide/Debuggers/Visualise.cpp index 9c2885f69..4497feca0 100644 --- a/uppsrc/ide/Debuggers/Visualise.cpp +++ b/uppsrc/ide/Debuggers/Visualise.cpp @@ -392,7 +392,7 @@ void Pdb::VisualDisplay::Paint(Draw& w, const Rect& r, const Value& q, else if(*p.text == '\2') { // Image support PrettyImage img; - memcpy(&img, ~p.text + 1, sizeof(PrettyImage)); + memcpy((void *)&img, ~p.text + 1, sizeof(PrettyImage)); Rect r = RectC(x, y, sz.cx, sz.cy); Image m = DbgImg::Img(); if(img.size.cx < 0 || img.size.cx > 10000 || img.size.cy < 0 || img.size.cy > 10000) diff --git a/upptst/RoundRect2/main.cpp b/upptst/RoundRect2/main.cpp index ecadd1b6f..d827c244b 100644 --- a/upptst/RoundRect2/main.cpp +++ b/upptst/RoundRect2/main.cpp @@ -14,8 +14,10 @@ struct MyApp : public TopWindow { p.Move(10, 10); p.Arc(10, 10, 0.1, M_PI, M_PI); // p.RoundedRectangle(2, 2, 100, 100, 0.1) -// p.Stroke(5, Blue()); - p.Stroke(0.1, Blue()); + p.Stroke(5, Blue()); +// p.Stroke(0.1, Blue()); + + p.Circle(20, 20, 10).Stroke(1, Blue()); } };