<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.temlib.org/AtariForumWiki/index.php?action=history&amp;feed=atom&amp;title=HighresMedium_file_format</id>
	<title>HighresMedium file format - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.temlib.org/AtariForumWiki/index.php?action=history&amp;feed=atom&amp;title=HighresMedium_file_format"/>
	<link rel="alternate" type="text/html" href="https://www.temlib.org/AtariForumWiki/index.php?title=HighresMedium_file_format&amp;action=history"/>
	<updated>2026-05-13T17:45:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://www.temlib.org/AtariForumWiki/index.php?title=HighresMedium_file_format&amp;diff=14087&amp;oldid=prev</id>
		<title>&gt;Lp: New page</title>
		<link rel="alternate" type="text/html" href="https://www.temlib.org/AtariForumWiki/index.php?title=HighresMedium_file_format&amp;diff=14087&amp;oldid=prev"/>
		<updated>2017-01-03T00:22:46Z</updated>

		<summary type="html">&lt;p&gt;New page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
HighresMedium    *.HRM&lt;br /&gt;
&lt;br /&gt;
This format is found in only one demo: &amp;quot;HighResMode&amp;quot; by Paradox. The &lt;br /&gt;
pictures are interlaced in medium resolution with 35 colors per line. &lt;br /&gt;
The files are packed with Ice. The unpacked format is as follows:&lt;br /&gt;
64000 bytes      screen data, 160 bytes per scanline, 400 lines&lt;br /&gt;
28000 bytes      palette data, 70 bytes per line&lt;br /&gt;
-----------&lt;br /&gt;
96000 bytes&lt;br /&gt;
&lt;br /&gt;
/*&lt;br /&gt;
 *  Given an x-coordinate and a color index, returns the corresponding&lt;br /&gt;
 *  HighResMedium palette index.&lt;br /&gt;
 *&lt;br /&gt;
 *  by Hans Wessels; placed in the public domain January, 2008.&lt;br /&gt;
 */&lt;br /&gt;
int find_hrm_index(int x, int c)&lt;br /&gt;
{&lt;br /&gt;
  x+=80;&lt;br /&gt;
	if(c==0)&lt;br /&gt;
	{&lt;br /&gt;
	  return -1+4*(int)((x+0)/80);&lt;br /&gt;
	}&lt;br /&gt;
	else if(c==1)&lt;br /&gt;
	{&lt;br /&gt;
	  return 4*(int)((x-8)/80);&lt;br /&gt;
	}&lt;br /&gt;
	else if(c==2)&lt;br /&gt;
	{&lt;br /&gt;
	  return 1+4*(int)((x-40)/80);&lt;br /&gt;
	}&lt;br /&gt;
  return 2+4*(int)((x-48)/80);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Back to [[ST Picture Formats]]&lt;/div&gt;</summary>
		<author><name>&gt;Lp</name></author>
	</entry>
</feed>