~ubuntu-branches/ubuntu/raring/gpac/raring

« back to all changes in this revision

Viewing changes to modules/gdip_raster/gdip_grad.cpp

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2007-01-24 23:34:57 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070124233457-zzlls8afkt0nyakj
Tags: 0.4.2~rc2-0ubuntu1
* New upstream release
  * Most notably MP4 tagging support via MP4Box -itags
* debian/patches/01_64bits.dpatch: dropped; included upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
}
100
100
 
101
101
static 
102
 
GF_Err gf_set_linear_gradient (GF_STENCIL _this, Fixed start_x, Fixed start_y, Fixed end_x, Fixed end_y, GF_Color start_col, GF_Color end_col)
 
102
GF_Err gf_set_linear_gradient (GF_STENCIL _this, Fixed start_x, Fixed start_y, Fixed end_x, Fixed end_y)
103
103
{
104
104
        GPSTEN();
105
105
        CHECK_RET(GF_STENCIL_LINEAR_GRADIENT);
110
110
        _sten->end.X = FIX2FLT(end_x);
111
111
        _sten->end.Y = FIX2FLT(end_y);
112
112
 
113
 
        GdipCreateLineBrush(&_sten->start, &_sten->end, start_col, end_col, WrapModeTile, &_sten->pLinear);
 
113
        GdipCreateLineBrush(&_sten->start, &_sten->end, 0xFF000000, 0xFFFFFFFF, WrapModeTile, &_sten->pLinear);
114
114
        if (!_sten->pLinearMat) GdipCreateMatrix(&_sten->pLinearMat);
115
115
        GdipGetLineTransform(_sten->pLinear, _sten->pLinearMat);
116
116
        _sten->needs_rebuild = 1;