[Git][wxwidgets/wxwidgets][master] 4 commits: Fix typo comma

1 view
Skip to first unread message

Vadim Zeitlin (@_VZ_)

unread,
May 15, 2026, 8:38:07 PM (yesterday) May 15
to wx-commi...@googlegroups.com

Vadim Zeitlin pushed to branch master at wxWidgets / wxWidgets

Commits:

  • ac31e24a
    by Paul Cornett at 2026-05-15T16:54:04-07:00
    Fix typo comma
    
  • 9fc2cc83
    by Paul Cornett at 2026-05-15T16:56:57-07:00
    Remove comment documenting non-existent function
    
  • 4161c329
    by Paul Cornett at 2026-05-15T17:00:24-07:00
    Fix signed/unsigned comparison
    
  • a99e0f82
    by Paul Cornett at 2026-05-15T17:05:19-07:00
    Avoid -Wcast-qual warning
    

4 changed files:

Changes:

  • src/aui/framemanager.cpp
    ... ... @@ -402,7 +402,7 @@ public:
    402 402
     
    
    403 403
             Create(mgr.GetManagedWindow(), wxID_ANY,
    
    404 404
                            wxDefaultPosition, wxDefaultSize,
    
    405
    -                       flags | wxAUI_TB_PLAIN_BACKGROUND),
    
    405
    +                       flags | wxAUI_TB_PLAIN_BACKGROUND);
    
    406 406
     
    
    407 407
             SetFont(GetFont().MakeSmaller());
    
    408 408
     
    

  • src/common/dcbase.cpp
    ... ... @@ -1254,45 +1254,6 @@ void wxDC::DrawLabel(const wxString& text,
    1254 1254
             m_pimpl->CalcBoundingBox(wxPoint(x0, y0), wxSize(width0, height));
    
    1255 1255
     }
    
    1256 1256
     
    
    1257
    -/*
    
    1258
    -Notes for wxWidgets DrawEllipticArcRot(...)
    
    1259
    -
    
    1260
    -wxDCBase::DrawEllipticArcRot(...) draws a rotated elliptic arc or an ellipse.
    
    1261
    -It uses wxDCBase::CalculateEllipticPoints(...) and wxDCBase::Rotate(...),
    
    1262
    -which are also new.
    
    1263
    -
    
    1264
    -All methods are generic, so they can be implemented in wxDCBase.
    
    1265
    -
    
    1266
    -CalculateEllipticPoints(...) fills a given list of wxPoints with some points
    
    1267
    -of an elliptic arc. The algorithm is pixel-based: In every row (in flat
    
    1268
    -parts) or every column (in steep parts) only one pixel is calculated.
    
    1269
    -Trigonometric calculation (sin, cos, tan, atan) is only done if the
    
    1270
    -starting angle is not equal to the ending angle. The calculation of the
    
    1271
    -pixels is done using simple arithmetic only and should perform not too
    
    1272
    -bad even on devices without floating point processor. I didn't test this yet.
    
    1273
    -
    
    1274
    -Rotate(...) rotates a list of point pixel-based, you will see rounding errors.
    
    1275
    -For instance: an ellipse rotated 180 degrees is drawn
    
    1276
    -slightly different from the original.
    
    1277
    -
    
    1278
    -The points are then moved to an array and used to draw a polyline and/or polygon
    
    1279
    -(with center added, the pie).
    
    1280
    -The result looks quite similar to the native ellipse, only e few pixels differ.
    
    1281
    -
    
    1282
    -The performance on a desktop system (Athlon 1800, WinXP) is about 7 times
    
    1283
    -slower as DrawEllipse(...), which calls the native API.
    
    1284
    -An rotated ellipse outside the clipping region takes nearly the same time,
    
    1285
    -while an native ellipse outside takes nearly no time to draw.
    
    1286
    -
    
    1287
    -If you draw an arc with this new method, you will see the starting and ending angles
    
    1288
    -are calculated properly.
    
    1289
    -If you use DrawEllipticArc(...), you will see they are only correct for circles
    
    1290
    -and not properly calculated for ellipses.
    
    1291
    -
    
    1292
    -Peter Lenhard
    
    1293
    -p.le...@t-online.de
    
    1294
    -*/
    
    1295
    -
    
    1296 1257
     float wxDCImpl::GetFontPointSizeAdjustment(float dpi)
    
    1297 1258
     {
    
    1298 1259
         // wxMSW has long-standing bug where wxFont point size is interpreted as
    

  • src/common/dcsvg.cpp
    ... ... @@ -505,7 +505,7 @@ void wxSVGFileDC::SetShapeRenderingMode(wxSVGShapeRenderingMode renderingMode)
    505 505
     
    
    506 506
     wxString wxSVGFileDC::GetSVGDocument() const
    
    507 507
     {
    
    508
    -    return ((wxSVGFileDCImpl*)GetImpl())->GetSVGDocument();
    
    508
    +    return static_cast<const wxSVGFileDCImpl*>(GetImpl())->GetSVGDocument();
    
    509 509
     }
    
    510 510
     
    
    511 511
     bool wxSVGFileDC::Save()
    

  • src/richtext/richtextbuffer.cpp
    No preview for this file type
Reply all
Reply to author
Forward
0 new messages