~compiz-team/compiz/compiz.fix_1120009

« back to all changes in this revision

Viewing changes to plugins/group/src/glow.cpp

Fixed dimention->dimension typos.

Approved by Daniel van Vugt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
173
173
 *
174
174
 * This function computures the matrix transformation required for each
175
175
 * part of the glow texture which we wish to stretch to some rectangular
176
 
 * dimentions
 
176
 * dimensions
177
177
 *
178
178
 * There are eight quads different parts of the texture which we wish to
179
179
 * paint here, the 4 sides and four corners, eg:
247
247
    mGlowQuads[GLOWQUAD_TOPLEFT].mMatrix = *matrix;
248
248
    quadMatrix = &mGlowQuads[GLOWQUAD_TOPLEFT].mMatrix;
249
249
 
250
 
    /* Set the desired rect dimentions
 
250
    /* Set the desired rect dimensions
251
251
     * for the part of the glow we are painting */
252
252
 
253
253
    x1 = WIN_REAL_X (w) - glowSize + glowOffset;
260
260
     * here (left to right top to bottom)
261
261
     *
262
262
     * The base position (x0 and y0) here requires us to move backwards
263
 
     * on the x and y dimentions by the calculated rect dimentions
 
263
     * on the x and y dimensions by the calculated rect dimensions
264
264
     * multiplied by the scale factors
265
265
     */
266
266
 
281
281
    mGlowQuads[GLOWQUAD_TOPRIGHT].mMatrix = *matrix;
282
282
    quadMatrix = &mGlowQuads[GLOWQUAD_TOPRIGHT].mMatrix;
283
283
 
284
 
    /* Set the desired rect dimentions
 
284
    /* Set the desired rect dimensions
285
285
     * for the part of the glow we are painting */
286
286
 
287
287
    x1 = WIN_REAL_X (w) + WIN_REAL_WIDTH (w) - glowOffset;
296
296
     * (right to left top to bottom)
297
297
     *
298
298
     * The base position (x0 and y0) here requires us to move backwards
299
 
     * on the y dimention and forwards on x by the calculated rect dimentions
 
299
     * on the y dimension and forwards on x by the calculated rect dimensions
300
300
     * multiplied by the scale factors (since we are moving forward on x we
301
301
     * need the inverse of that which is 1 - x1 * xx
302
302
     */
331
331
     * (left to right bottom to top)
332
332
     *
333
333
     * The base position (x0 and y0) here requires us to move backwards
334
 
     * on the x dimention and forwards on y by the calculated rect dimentions
 
334
     * on the x dimension and forwards on y by the calculated rect dimensions
335
335
     * multiplied by the scale factors (since we are moving forward on x we
336
336
     * need the inverse of that which is 1 - y1 * yy
337
337
     */
365
365
     * (right to left bottom to top)
366
366
     *
367
367
     * The base position (x0 and y0) here requires us to move forwards
368
 
     * on both dimentions by the calculated rect dimentions
 
368
     * on both dimensions by the calculated rect dimensions
369
369
     * multiplied by the scale factors
370
370
     */
371
371
 
398
398
     * are scaling on the y part in a positive direciton
399
399
     *
400
400
     * The base position (y0) here requires us to move backwards
401
 
     * on the x dimention and forwards on y by the calculated rect dimentions
 
401
     * on the x dimension and forwards on y by the calculated rect dimensions
402
402
     * multiplied by the scale factors
403
403
     */
404
404
 
426
426
     * are scaling on the y part in a negative direciton
427
427
     *
428
428
     * The base position (y0) here requires us to move forwards
429
 
     * on y by the calculated rect dimentions
 
429
     * on y by the calculated rect dimensions
430
430
     * multiplied by the scale factors
431
431
     */
432
432
 
454
454
     * are scaling on the x part in a positive direciton
455
455
     *
456
456
     * The base position (x0) here requires us to move backwards
457
 
     * on x by the calculated rect dimentions
 
457
     * on x by the calculated rect dimensions
458
458
     * multiplied by the scale factors
459
459
     */
460
460
 
482
482
     * are scaling on the x part in a negative direciton
483
483
     *
484
484
     * The base position (x0) here requires us to move forwards
485
 
     * on x by the calculated rect dimentions
 
485
     * on x by the calculated rect dimensions
486
486
     * multiplied by the scale factors
487
487
     */
488
488