Skip to content

Commit

Permalink
Removed unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Dec 19, 2020
1 parent d331a98 commit 4b349d2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
18 changes: 0 additions & 18 deletions src/osdep/amiberry_gfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1677,24 +1677,6 @@ static int get_display_depth()
return screen->format->BytesPerPixel * 8;
}

int GetSurfacePixelFormat()
{
const auto depth = get_display_depth();
const auto unit = depth + 1 & 0xF8;

return unit == 8
? RGBFB_CHUNKY
: depth == 15 && unit == 16
? RGBFB_R5G5B5
: depth == 16 && unit == 16
? RGBFB_R5G6B5
: unit == 24
? RGBFB_R8G8B8
: unit == 32
? RGBFB_R8G8B8A8
: RGBFB_NONE;
}

int graphics_init(bool mousecapture)
{
inputdevice_unacquire();
Expand Down
1 change: 0 additions & 1 deletion src/osdep/picasso96.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ struct MultiDisplay {
};
extern struct MultiDisplay Displays[MAX_DISPLAYS];

extern int GetSurfacePixelFormat(void);
extern void picasso_init_resolutions (void);

#ifdef PICASSO96
Expand Down

0 comments on commit 4b349d2

Please # to comment.