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>C Specification</h2>
17
18<dl>
19  <dd><pre><code>#include &lt;revolution/vi.h&gt;</code></pre>
20  </dd>
21  <dd><pre><code>#define VIPadFrameBufferWidth(width)    \
22        ((u16)(((u16)(<em>width</em>) + 15) &amp; ~15))</code></pre>
23  </dd>
24</dl>
25
26<h2>Arguments</h2>
27
28<table border="1" cellpadding="3" cellspacing="0.1">
29  <tr>
30<td width="120" bgcolor="#ffffe8"><em><strong><code>width</code></strong></em></td>
31<td width="520">the width of the XFB in pixels</td>
32  </tr>
33</table>
34
35<h2>Return Values</h2>
36
37<p>An unsigned 16-bit integer rounded up to the nearest 16-pixel boundary.</p>
38
39<h2>Description</h2>
40
41<p>This function rounds up <CODE>width</CODE> to the nearest 16-pixel boundary.</p>
42
43<h2>See Also</h2>
44
45<h2>Revision History</h2>
46
47<P>2006/03/01 Initial version.</p>
48<hr>
49<P>CONFIDENTIAL</p>
50</BODY>
51</HTML>