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>&nbsp;</div>
<div>I&#39;ve modified renderspu_wgl.c to allow support for the &#39;borderless&#39; option in the Render SPU.</div>
<div>&nbsp;</div>
<div>I&#39;ve added the following code:</div>
<div>&nbsp;</div>
<div>Changed line 384 from:</div>&gt;&gt; window_style = ( render_spu.fullscreen ? WS_POPUP : WS_CAPTION ); 
<div>to:</div>
<div>&gt;&gt; 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>&gt;&gt;&nbsp;else if( render_spu.borderless )<br>&gt;&gt;&nbsp;{<br>&gt;&gt;&nbsp;&nbsp;window_style &amp;= ~WS_OVERLAPPEDWINDOW;<br>&gt;&gt;&nbsp;&nbsp;window-&gt;x = render_spu.defaultX;<br>&gt;&gt;&nbsp;&nbsp;window-&gt;y = render_spu.defaultY;<br>&gt;&gt;&nbsp;&nbsp;window_plus_caption_width = window-&gt;width;<br>
&gt;&gt;&nbsp;&nbsp;window_plus_caption_height = window-&gt;height;<br>&gt;&gt;&nbsp;&nbsp;crDebug( &quot;Render SPU: Window borderless enabled.&quot;);<br>&gt;&gt;&nbsp;}<br></div>
<div>It seems to work with my system.</div>
<div>&nbsp;</div>
<div>--Dave</div>
<div>&nbsp;<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==--