Mantis

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0026033RunnerHTML5Public2017-03-26 10:202017-08-04 17:10
ReporterYellowAfterlife 
Assigned ToMike Rennie 
PriorityLowSeverityC - GeneralReproducibility100%
StatusClosedResolutionFixed 
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 Version7.7.1414
2.x Runtime Version2.0.5.
2.x Runtime Version Verified In
Attached Filespng file icon png3.png [^] (4,211 bytes) 2017-03-26 10:20


png file icon png2.png [^] (10,149 bytes) 2017-03-26 10:20


? file icon a_bug.gmz [^] (119,620 bytes) 2017-03-26 10:20

- Relationships

-  Notes
There are no notes attached to this issue.


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker