/****************************************************************************/
/* Get desired units. */
/****************************************************************************/
-glUnitsType
+lglUnitsType
gl_prefs_get_units (void)
{
return gl_prefs->units;
{
switch (gl_prefs->units) {
- case GL_UNITS_POINT:
+ case LGL_UNITS_POINT:
return 1.0; /* points */
- case GL_UNITS_INCH:
+ case LGL_UNITS_INCH:
return 1.0 / 72.0; /* inches */
- case GL_UNITS_MM:
+ case LGL_UNITS_MM:
return 0.35277778; /* mm */
default:
g_message ("Illegal units"); /* Should not happen */
{
switch (gl_prefs->units) {
- case GL_UNITS_POINT:
+ case LGL_UNITS_POINT:
return 1; /* points */
- case GL_UNITS_INCH:
+ case LGL_UNITS_INCH:
return 3; /* inches */
- case GL_UNITS_MM:
+ case LGL_UNITS_MM:
return 1; /* mm */
default:
g_message ("Illegal units"); /* Should not happen */
{
switch (gl_prefs->units) {
- case GL_UNITS_POINT:
+ case LGL_UNITS_POINT:
return 0.1; /* points */
- case GL_UNITS_INCH:
+ case LGL_UNITS_INCH:
return 0.001; /* inches */
- case GL_UNITS_MM:
+ case LGL_UNITS_MM:
return 0.1; /* mm */
default:
g_message ("Illegal units"); /* Should not happen */
{
switch (gl_prefs->units) {
- case GL_UNITS_POINT:
+ case LGL_UNITS_POINT:
return _("points");
- case GL_UNITS_INCH:
+ case LGL_UNITS_INCH:
return _("inches");
- case GL_UNITS_MM:
+ case LGL_UNITS_MM:
return _("mm");
default:
g_message ("Illegal units"); /* Should not happen */