Skip to content

Commit

Permalink
Fix supertuxkart#109 (remove the non-power of 2 textures warning)
Browse files Browse the repository at this point in the history
  • Loading branch information
vampy committed Jan 13, 2019
1 parent f7ed980 commit 9a956f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
11 changes: 2 additions & 9 deletions include/AddonViewer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,6 @@ public function fillTemplate($template)
'link' => URL::rewriteFromConfig($this->addon->getLink())
];
$tpl['info'] = $info;
if (Addon::isTextureInvalid($latestRev['status']))
{
$template->assign(
"warnings",
'Warning: This addon may not display correctly on some systems. It uses textures that may not be compatible with all video cards.'
);
}

// Download button, TODO use this in some way
$file_path = $this->addon->getFile((int)$this->latestRev['revision']);
Expand Down Expand Up @@ -287,8 +280,8 @@ public function fillTemplate($template)
"alpha_img" => StkImage::getImageLabel(_h('Alpha')),
"beta_img" => StkImage::getImageLabel(_h('Beta')),
"rc_img" => StkImage::getImageLabel(_h('Release-Candidate')),
"latest_img" => StkImage::getImageLabel(_h('Latest')),
"invalid_img" => StkImage::getImageLabel(_h('Invalid Textures'))
"latest_img" => StkImage::getImageLabel(_h('Latest'))
// "invalid_img" => StkImage::getImageLabel(_h('Invalid Textures'))
]
];

Expand Down
6 changes: 3 additions & 3 deletions tpl/default/addons/panel.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@
<th>{$addon.config.status.beta_img}</th>
<th>{$addon.config.status.rc_img}</th>
<th>{$addon.config.status.latest_img}</th>
<th>{$addon.config.status.invalid_img}</th>
{*<th>{$addon.config.status.invalid_img}</th>*}
</tr>
</thead>
<tbody>
Expand Down Expand Up @@ -329,13 +329,13 @@
{if $revision.is_beta} {$beta=" checked"} {/if}
{if $revision.is_rc} {$rc=" checked"} {/if}
{if $revision.is_latest} {$latest=" checked"} {/if}
{if $revision.is_invalid} {$invalid=" checked"} {/if}
{*{if $revision.is_invalid} {$invalid=" checked"} {/if}*}

<td><input type="checkbox" name="alpha-{$rev_n}"{$alpha}></td>
<td><input type="checkbox" name="beta-{$rev_n}"{$beta}></td>
<td><input type="checkbox" name="rc-{$rev_n}"{$rc}></td>
<td><input type="radio" value="{$rev_n}" name="latest"{$latest}></td>
<td><input type="checkbox" disabled name="texpower-{$rev_n}"{$invalid}></td>
{*<td><input type="checkbox" disabled name="texpower-{$rev_n}"{$invalid}></td>*}
{$fields[] = "alpha-$rev_n"} {$fields[] = "beta-$rev_n"} {$fields[] = "rc-$rev_n"}

{*Delete revision button*}
Expand Down

0 comments on commit 9a956f1

Please sign in to comment.