00001
00002
00003
00004
00005
00006
00007 #include "CursorSize.h"
00008 #include "EngaugeAssert.h"
00009
00010 int CursorSizeToPixels (CursorSize cursorSize)
00011 {
00012 ENGAUGE_ASSERT (cursorSize < NUM_CURSOR_SIZES);
00013
00014 switch (cursorSize) {
00015 case CURSOR_SIZE_16:
00016 return 16;
00017
00018 case CURSOR_SIZE_32:
00019 return 32;
00020
00021 case CURSOR_SIZE_48:
00022 return 48;
00023
00024 case CURSOR_SIZE_64:
00025 return 64;
00026
00027 default:
00028 break;
00029 }
00030
00031 ENGAUGE_ASSERT (false);
00032 return 0;
00033 }