GLES2

Check-in [b5dab237b7]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:fixes for value2pixel
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:b5dab237b758ce2f71b0cc84b74200eab7328642
User & Date: arnulf 2013-08-25 16:38:04
Context
2013-08-25
16:55
typo fix check-in: bef12e00c8 user: arnulf tags: trunk
16:38
fixes for value2pixel check-in: b5dab237b7 user: arnulf tags: trunk
2013-08-24
19:02
fixes for rotate check-in: 5081502c76 user: arnulf tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to generic/gles2Builtin.c.

1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
    radius = diameter / 2.0;
    if (position_box.width < 2*borderWidth) {
        borderWidth = position_box.width/2;
    }
    if (position_box.height < 2*borderWidth) {
        borderWidth = position_box.height/2;
    }
    LeftTopBevel(interp, position_box.x, position_box.y, diameter, diameter, 0, relief, shadow_colors);
    LeftTopBevel(interp, position_box.x+radius, position_box.y-radius, diameter, diameter, 1, relief, shadow_colors);
    LeftBottomBevel(interp, position_box.x, position_box.y, diameter, diameter, 1, relief, shadow_colors);
    LeftBottomBevel(interp, position_box.x+radius, position_box.y+radius, diameter, diameter, 0, relief, shadow_colors);
    return result;
}

/*
 * ------------------------------------------------------------------------
 *  Gles2_BiFillTextureRectangleCmd()
 *







|
|
|
|







1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
    radius = diameter / 2.0;
    if (position_box.width < 2*borderWidth) {
        borderWidth = position_box.width/2;
    }
    if (position_box.height < 2*borderWidth) {
        borderWidth = position_box.height/2;
    }
    LeftTopBevel(interp, position_box.x, position_box.y, diameter, diameter, 1, relief, shadow_colors);
    LeftTopBevel(interp, position_box.x+radius, position_box.y-radius, diameter, diameter, 0, relief, shadow_colors);
    LeftBottomBevel(interp, position_box.x, position_box.y, diameter, diameter, 0, relief, shadow_colors);
    LeftBottomBevel(interp, position_box.x+radius, position_box.y+radius, diameter, diameter, 1, relief, shadow_colors);
    return result;
}

/*
 * ------------------------------------------------------------------------
 *  Gles2_BiFillTextureRectangleCmd()
 *

Changes to generic/gles2Helpers.c.

370
371
372
373
374
375
376

377
378


379



380
381
382
383
384
385
386
    default:
        goto error;
    }
    i = (int) d;
    if ((units < 0) && (i == d)) {
        value = d;
    } else {

        value = d / bias[units];
    }


    val = round(value * 3.75);



    Tcl_SetObjResult(interp, Tcl_NewIntObj(val));
    return TCL_OK;

  error:
    if (interp != NULL) {
        Tcl_SetObjResult(interp, Tcl_ObjPrintf(
            "bad screen distance \"%.50s\"", string));







>
|
|
>
>
|
>
>
>







370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
    default:
        goto error;
    }
    i = (int) d;
    if ((units < 0) && (i == d)) {
        value = d;
    } else {
        if (units > 0) {
            value = d / bias[units];
	}
    }
    if (units >= 0) {
        val = round(value * 3.75);
    } else {
        val = round(value);
    }
    Tcl_SetObjResult(interp, Tcl_NewIntObj(val));
    return TCL_OK;

  error:
    if (interp != NULL) {
        Tcl_SetObjResult(interp, Tcl_ObjPrintf(
            "bad screen distance \"%.50s\"", string));