Skip to content

Commit 475e590

Browse files
committed
Update comments
1 parent 51902c0 commit 475e590

2 files changed

Lines changed: 2 additions & 23 deletions

File tree

gfx/drivers/gdi_gfx.c

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2614,19 +2614,7 @@ static bool gdi_frame(void *data, const void *frame,
26142614

26152615
/* GDI has no programmable shader pipeline, so the animated XMB
26162616
* backgrounds (Ribbon / Snow / Bokeh / etc.) can't run — force
2617-
* that off so XMB falls back to the static gradient.
2618-
*
2619-
* xmb_shadows_enable, on the other hand, is just "draw the icon
2620-
* and text once at +offset with a black tint, then once more on
2621-
* top". The texture-modulated slow path in
2622-
* gdi_blit_texture_modulated and the tinted-glyph path in
2623-
* gdi_font_render_line both handle that correctly: pixels land
2624-
* as premultiplied black with the shadow alpha, AlphaBlend with
2625-
* AC_SRC_OVER + AC_SRC_ALPHA composites them as expected. So
2626-
* this flag is honoured rather than clobbered. (The legacy GDI
2627-
* driver predated those paths and force-disabled both flags
2628-
* together; gl1 still does the same thing for the same legacy
2629-
* reason.) */
2617+
* that off so XMB falls back to the static gradient. */
26302618
video_info->menu_shader_pipeline = 0;
26312619

26322620
if (!frame || !frame_width || !frame_height)

gfx/drivers/gl1.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,16 +1643,7 @@ static bool gl1_frame(void *data, const void *frame,
16431643

16441644
/* gl1 fixed-function has no programmable pipeline, so the
16451645
* animated XMB backgrounds (Ribbon / Snow / Bokeh / etc.) can't
1646-
* run -- force that off so XMB falls back to the static gradient.
1647-
*
1648-
* xmb_shadows_enable, on the other hand, is just "draw the icon
1649-
* and text once at +offset with a black tint, then once more on
1650-
* top". The default GL_MODULATE texture environment with vertex
1651-
* color (0,0,0,a) plus glBlendFunc(GL_SRC_ALPHA,
1652-
* GL_ONE_MINUS_SRC_ALPHA) darkens the destination to dst*(1-a),
1653-
* and the gl1 raster font driver's drop_x/drop_y path handles
1654-
* text shadows the same way, so this flag is honoured rather
1655-
* than clobbered. */
1646+
* run -- force that off so XMB falls back to the static gradient. */
16561647
video_info->menu_shader_pipeline = 0;
16571648

16581649
if (gl1->flags & GL1_FLAG_SHOULD_RESIZE)

0 commit comments

Comments
 (0)