aboutsummaryrefslogtreecommitdiff
path: root/c/defs.h
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-04-15 11:32:20 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-04-15 11:32:20 +0200
commitb3fa8086e0afca8545aa941a3ec175a0e1cb02ea (patch)
tree1d5a6fd2b760f3c0861b35e146a10a23cee35f3b /c/defs.h
parent34d6f7940bf341a8a03e52c64bd6b646e9c038d7 (diff)
downloadEpisodeBrowser-b3fa8086e0afca8545aa941a3ec175a0e1cb02ea.tar.gz
Sort by episode number if rating is equal.
Diffstat (limited to 'c/defs.h')
-rw-r--r--c/defs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/c/defs.h b/c/defs.h
index 5dfed69..c5e80c2 100644
--- a/c/defs.h
+++ b/c/defs.h
@@ -28,6 +28,16 @@ HWND DlvCreate();
void DlvShowEpisode(int);
inline int
+Cmp(int a, int b)
+{
+ if (a == b)
+ return 0;
+ if (a > b)
+ return 1;
+ return -1;
+}
+
+inline int
Dpi(int i)
{
extern int IDPI;