Skip to content

Commit

Permalink
Convert HQx and scrap to 32-bit color.
Browse files Browse the repository at this point in the history
Allow putting small 32-bit pics onto the scrap and upscaling them.
Also limit upscaling level based on maximum GL rexture size.
  • Loading branch information
skullernet committed Apr 14, 2013
1 parent 8fef47a commit c0aae81
Show file tree
Hide file tree
Showing 4 changed files with 246 additions and 215 deletions.
2 changes: 2 additions & 0 deletions inc/shared/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,

#define q_printf(f, a) __attribute__((format(printf, f, a)))
#define q_noreturn __attribute__((noreturn))
#define q_noinline __attribute__((noinline))
#define q_malloc __attribute__((malloc))
#if __GNUC__ >= 4
#define q_sentinel __attribute__((sentinel))
Expand Down Expand Up @@ -127,6 +128,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,

#define q_printf(f, a)
#define q_noreturn
#define q_noinline
#define q_malloc
#define q_sentinel

Expand Down
4 changes: 2 additions & 2 deletions src/refresh/gl/gl.h
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,6 @@ void GL_DrawAliasModel(model_t *model);
* hq2x.c
*
*/
void HQ2x_Render(uint32_t *output, const uint8_t *input, int width, int height);
void HQ4x_Render(uint32_t *output, const uint8_t *input, int width, int height);
void HQ2x_Render(uint32_t *output, const uint32_t *input, int width, int height);
void HQ4x_Render(uint32_t *output, const uint32_t *input, int width, int height);
void HQ2x_Init(void);
Loading

0 comments on commit c0aae81

Please sign in to comment.