View Issue Details

IDProjectCategoryView StatusLast Update
0026033RunnerHTML5Public2017-08-04 17:10
ReporterYellowAfterlifeAssigned ToMike Rennie 
PriorityLowSeverityC - GeneralReproducibility100%
Status ClosedResolutionFixed 
PlatformWindowsOSWindows 8OS Version8.1
Summary0026033: HTML5: draw_set_blend_mode(bm_subtract) adds alpha instead of subtracting
DescriptionSample code:
/// Create:
clip = -1;
clipx = room_width / 2 - 128;
clipy = room_height / 2 - 128;

/// Draw:
if (!surface_exists(clip)) {
    clip = surface_create(256, 256);
    surface_set_target(clip);
    draw_clear_alpha(c_white, 0.5);
    draw_set_blend_mode(bm_subtract);
    draw_set_color(c_yellow);
    draw_circle(128, 128, 70, false);
    draw_set_blend_mode(bm_normal);
    surface_reset_target();
}
draw_surface(clip, clipx, clipy);


On Windows, this works accordingly. On HTML5, instead of cutting a hole in the surface, the game fills it with opaque color.
1.4 Found In7.7.1414
2.x Runtime Found In2.0.5.
2.x Runtime Verified In

Activities

YellowAfterlife

2017-03-26 10:20

Developer  

png3.png (4,211 bytes)
png3.png (4,211 bytes)
png2.png (10,149 bytes)
png2.png (10,149 bytes)
a_bug.gmz (119,620 bytes)