White flash after bulding CEF 81.3.1 (Win)

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

White flash after bulding CEF 81.3.1 (Win)

Postby CephaluS » Thu Apr 30, 2020 6:13 pm

Hello,

I just built CEF 81.3.1 (MinGw-w64) and now my Windows application shows a noticeable white background before loading the HTML content. This was happening very fast in prior versions (80.1.15 the last 'good' one I tested) making it barely noticeable.

Since I initialize my window with a black background (first shown color) and the loaded HTML is dark, this white flash in between is kind of intrusive.

I've tried to set the background_color property of CefSettings black before creating the browser but it won't work. This is the code:

Code: Select all
    brw_settings.background_color = (cef_color_t)0;
    CefBrowserHost::CreateBrowser(info, GuiClient, url, brw_settings, NULL, NULL);


I've searched the forums but I didn't find a solution.

Thanks you for helping!.
CephaluS
Techie
 
Posts: 21
Joined: Sun Jan 06, 2019 5:22 pm

Re: White flash after bulding CEF 81.3.1 (Win)

Postby magreenblatt » Thu Apr 30, 2020 6:30 pm

Use CefColorSetARGB(255, 0, 0, 0) for black.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: White flash after bulding CEF 81.3.1 (Win)

Postby CephaluS » Thu Apr 30, 2020 6:39 pm

Just perfect!.

Thanks for your magic, Marshall.
CephaluS
Techie
 
Posts: 21
Joined: Sun Jan 06, 2019 5:22 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot], tiplip and 43 guests