1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
7<meta http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
9<title>VIPadFrameBufferWidth</title>
10</head>
11
12<body>
13
14<h1 align="left">VIPadFrameBufferWidth</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/vi.h&gt;
19
20#define VIPadFrameBufferWidth(width)    \
21        ((u16)(((u16)(width) + 15) &amp; ~15))
22</pre></dd></dl>
23
24<h2>Arguments</h2>
25<TABLE class="arguments" border="1" >
26  <tr>
27<th>width</th>
28<td>The width of the XFB in pixels.</td>
29  </tr>
30</table>
31
32<h2>Return Values</h2>
33<p>An unsigned 16-bit integer rounded up to the nearest 16-pixel boundary.</p>
34
35<h2>Description</h2>
36<p>This function rounds up <SPAN class="argument">width</SPAN> to the nearest 16-pixel boundary.</p>
37
38<h2>See Also</h2>
39<p>None.</p>
40
41<h2>Revision History</h2>
42<P>
432006/03/01 Initial version.<br>
44</p>
45
46<hr><p>CONFIDENTIAL</p></body>
47</html>