Sha256: db42bd3fa364929fb42880e1df45011fe3e849b2dd7f25a9ecc340c98a8aa433
Contents?: true
Size: 1.58 KB
Versions: 9
Compression:
Stored size: 1.58 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>picture_width (TiRLE)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> <pre><span class="ruby-comment cmt"># File lib/native_file_types/ti99/TiRLE.rb, line 16</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">picture_width</span> <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">contents</span>[<span class="ruby-value">2</span>] <span class="ruby-keyword kw">when</span> <span class="ruby-value">0x48</span> <span class="ruby-keyword kw">then</span> <span class="ruby-keyword kw">return</span> <span class="ruby-value">256</span> <span class="ruby-comment cmt">#H=High Resolution </span> <span class="ruby-keyword kw">when</span> <span class="ruby-value">0x4</span><span class="ruby-constant">D</span> <span class="ruby-keyword kw">then</span> <span class="ruby-keyword kw">return</span> <span class="ruby-value">128</span> <span class="ruby-comment cmt">#M=Medium Resolution </span> <span class="ruby-keyword kw">end</span> <span class="ruby-identifier">raise</span> <span class="ruby-node">"invalid RLE graphic mode #{buffer[2].chr}"</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
9 entries across 9 versions & 1 rubygems