Code:
function get_Desktop()
{
	theDesktopWidth = sys_metrics(0);
	theDesktopHeight = sys_metrics(1);
}

panel screen_size_panel =
{
  digits(10,10,"width: %.1f","Arial#16b",1,theDesktopWidth);
  digits(10,30,"height: %.1f","Arial#16b",1,theDesktopHeight);
  flags = VISIBLE, refresh;
  layer = 60;
}



Then I call get_Desktop(); in the code. No matter what I set my desktop resolution to the panel always says it's 1280x1024.