Minor formatting fix
Explain the direction that Rotate goes
Fix wrong documentation of wxObjectDataPtr ctor This ctor was wrongly documented back in cfa9866bf5 (revision contributed by Utensil Candel, 2008-03-30) to call IncRef() on the pointer passed to it but in fact it just takes ownership of it. Closes #25692.
Silence MSVC "possibly uninitialized" warning in WebP Initialize variables to make it clear to the compiler that they always have well-defined values. Closes #25693.
Allow handling drag and drop of CFSTR_FILECONTENTS with wxMSW Allow the application to handle this and other similar data objects by not giving an error if the index in the provided pformatetc object is 0. Closes #25694.
Merge branch 'GCDocs' of github.com:Blake-Madden/wxWidgets Minor improvements to wxGraphicsContext docs. See #25680.
... | ... | @@ -229,7 +229,7 @@ public : |
229 | 229 | The rectangle is either defined by the top left and bottom right corner,
|
230 | 230 | or by the top left corner and size.
|
231 | 231 | |
232 | - A point is contained within the rectangle if left <= @c @c m_x < right
|
|
232 | + A point is contained within the rectangle if left <= @c m_x < right
|
|
233 | 233 | and top <= @c m_y < bottom; thus, it is a half open interval.
|
234 | 234 | |
235 | 235 | @note wxRect2DDouble has subtle differences from wxRect in how its edge
|
... | ... | @@ -731,6 +731,8 @@ public: |
731 | 731 | This can be useful for applying a tilt to your drawing
|
732 | 732 | commands or for drawing radial patterns.
|
733 | 733 | |
734 | + @note A positive angle will rotate clockwise, negative counterclockwise.
|
|
735 | + |
|
734 | 736 | @param angle
|
735 | 737 | Rotation angle in radians, clockwise.
|
736 | 738 |
... | ... | @@ -581,7 +581,8 @@ public: |
581 | 581 | Constructor.
|
582 | 582 | |
583 | 583 | @a ptr is a pointer to the reference counted object to which this class points.
|
584 | - If @a ptr is not null @b T::IncRef() will be called on the object.
|
|
584 | + This object takes ownership of @a ptr, i.e.\ it will call T::DecRef()
|
|
585 | + on it if it is non-null when this object is destroyed or reset.
|
|
585 | 586 | */
|
586 | 587 | wxObjectDataPtr(T* ptr = nullptr);
|
587 | 588 |
... | ... | @@ -230,8 +230,8 @@ bool wxWEBPHandler::LoadAnimation(std::vector<wxWebPAnimationFrame>& frames, wxI |
230 | 230 | |
231 | 231 | while (WebPAnimDecoderHasMoreFrames(decoder.get()))
|
232 | 232 | {
|
233 | - uint8_t* buf;
|
|
234 | - int timestamp;
|
|
233 | + uint8_t* buf = nullptr;
|
|
234 | + int timestamp = 0;
|
|
235 | 235 | WebPAnimDecoderGetNext(decoder.get(), &buf, ×tamp);
|
236 | 236 | if (buf == nullptr)
|
237 | 237 | {
|
... | ... | @@ -609,6 +609,18 @@ STDMETHODIMP wxIDataObject::GetData(FORMATETC *pformatetcIn, STGMEDIUM *pmedium) |
609 | 609 | return hr;
|
610 | 610 | }
|
611 | 611 | |
612 | + if ((pformatetcIn->tymed & (TYMED_HGLOBAL | TYMED_ISTREAM)) == TYMED_ISTREAM) {
|
|
613 | + IStream* stream = nullptr;
|
|
614 | + hr = CreateStreamOnHGlobal(pmedium->hGlobal, TRUE, &stream);
|
|
615 | + if ( FAILED(hr) ) {
|
|
616 | + GlobalFree(pmedium->hGlobal);
|
|
617 | + return hr;
|
|
618 | + }
|
|
619 | + ZeroMemory(pmedium, sizeof(STGMEDIUM));
|
|
620 | + pmedium->tymed = TYMED_ISTREAM;
|
|
621 | + pmedium->pstm = stream;
|
|
622 | + }
|
|
623 | + |
|
612 | 624 | return S_OK;
|
613 | 625 | }
|
614 | 626 | |
... | ... | @@ -804,8 +816,8 @@ STDMETHODIMP wxIDataObject::QueryGetData(FORMATETC *pformatetc) |
804 | 816 | return E_INVALIDARG;
|
805 | 817 | }
|
806 | 818 | |
807 | - // the only one allowed by current COM implementation
|
|
808 | - if ( pformatetc->lindex != -1 ) {
|
|
819 | + // the only ones allowed by current COM implementation
|
|
820 | + if (pformatetc->lindex != -1 && pformatetc->lindex != 0) {
|
|
809 | 821 | wxLogTrace(wxTRACE_OleCalls,
|
810 | 822 | wxT("wxIDataObject::QueryGetData: bad lindex %ld"),
|
811 | 823 | pformatetc->lindex);
|
—
View it on GitLab.
You're receiving this email because of your account on gitlab.com. Manage all notifications · Help