mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Back out 446fbc59aa22 (bug 698205) for orange
This commit is contained in:
parent
43e6381597
commit
6079b1d0dd
@ -1021,7 +1021,7 @@ DrawTargetD2D::CreatePathBuilder(FillRule aFillRule) const
|
|||||||
TemporaryRef<GradientStops>
|
TemporaryRef<GradientStops>
|
||||||
DrawTargetD2D::CreateGradientStops(GradientStop *rawStops, uint32_t aNumStops) const
|
DrawTargetD2D::CreateGradientStops(GradientStop *rawStops, uint32_t aNumStops) const
|
||||||
{
|
{
|
||||||
vector<D2D1_GRADIENT_STOP> stops(aNumStops);
|
D2D1_GRADIENT_STOP *stops = new D2D1_GRADIENT_STOP[aNumStops];
|
||||||
|
|
||||||
for (uint32_t i = 0; i < aNumStops; i++) {
|
for (uint32_t i = 0; i < aNumStops; i++) {
|
||||||
stops[i].position = rawStops[i].offset;
|
stops[i].position = rawStops[i].offset;
|
||||||
@ -1030,7 +1030,7 @@ DrawTargetD2D::CreateGradientStops(GradientStop *rawStops, uint32_t aNumStops) c
|
|||||||
|
|
||||||
RefPtr<ID2D1GradientStopCollection> stopCollection;
|
RefPtr<ID2D1GradientStopCollection> stopCollection;
|
||||||
|
|
||||||
HRESULT hr = mRT->CreateGradientStopCollection(&stops.front(), aNumStops, byRef(stopCollection));
|
HRESULT hr = mRT->CreateGradientStopCollection(stops, aNumStops, byRef(stopCollection));
|
||||||
|
|
||||||
if (FAILED(hr)) {
|
if (FAILED(hr)) {
|
||||||
gfxWarning() << "Failed to create GradientStopCollection. Code: " << hr;
|
gfxWarning() << "Failed to create GradientStopCollection. Code: " << hr;
|
||||||
|
Loading…
Reference in New Issue
Block a user