Including 'borderless' support in Render SPU for win32 (renderspu_wgl.c)
"David L. Page" <[email protected]> Fri, 27 Jun 2008 11:19:10 -0400
| Newsgroups | gmane.comp.graphics.chromium.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============0835576768==
Content-Type: multipart/alternative;
boundary="----=_Part_22262_1112104.1214579950677"
------=_Part_22262_1112104.1214579950677
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Chromium folks--
I've modified renderspu_wgl.c to allow support for the 'borderless' option
in the Render SPU.
I've added the following code:
Changed line 384 from:
>> window_style = ( render_spu.fullscreen ? WS_POPUP : WS_CAPTION ); to:
>> window_style = ( render_spu.fullscreen || render_spu.borderless ?
WS_POPUP : WS_CAPTION );
and added the following code at line 428 or there abouts:
>> else if( render_spu.borderless )
>> {
>> window_style &= ~WS_OVERLAPPEDWINDOW;
>> window->x = render_spu.defaultX;
>> window->y = render_spu.defaultY;
>> window_plus_caption_width = window->width;
>> window_plus_caption_height = window->height;
>> crDebug( "Render SPU: Window borderless enabled.");
>> }
It seems to work with my system.
--Dave
--
David L. Page
Knoxville, Tennessee
[email protected]
------=_Part_22262_1112104.1214579950677
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
<div class="gmail_quote"><br>
<div>Chromium folks--</div>
<div> </div>
<div>I've modified renderspu_wgl.c to allow support for the 'borderless' option in the Render SPU.</div>
<div> </div>
<div>I've added the following code:</div>
<div> </div>
<div>Changed line 384 from:</div>>> window_style = ( render_spu.fullscreen ? WS_POPUP : WS_CAPTION );
<div>to:</div>
<div>>> window_style = ( render_spu.fullscreen || render_spu.borderless ? WS_POPUP : WS_CAPTION );<br clear="all"></div>
<div>and added the following code at line 428 or there abouts:</div>
<div>>> else if( render_spu.borderless )<br>>> {<br>>> window_style &= ~WS_OVERLAPPEDWINDOW;<br>>> window->x = render_spu.defaultX;<br>>> window->y = render_spu.defaultY;<br>>> window_plus_caption_width = window->width;<br>
>> window_plus_caption_height = window->height;<br>>> crDebug( "Render SPU: Window borderless enabled.");<br>>> }<br></div>
<div>It seems to work with my system.</div>
<div> </div>
<div>--Dave</div>
<div> <br>-- <br>David L. Page</div>
<div>Knoxville, Tennessee<br><a href="mailto:[email protected]">[email protected]</a><br></div></div>
------=_Part_22262_1112104.1214579950677--
--===============0835576768==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
--===============0835576768==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Chromium-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chromium-dev
--===============0835576768==--