     case PST_TOP_RIGHT:
     case PST_BOTTOM_LEFT:
     case PST_BOTTOM_RIGHT:
+    {
       // TODO: Fix for corners with a border-radius
-      oFragColor = draw_dashed_edge();
+      bool is_corner = true;
+      oFragColor = draw_dashed_edge(is_corner);
       break;
+    }
     case PST_BOTTOM:
     case PST_TOP:
     case PST_LEFT:
     case PST_RIGHT:
-      oFragColor = draw_dashed_edge();
+    {
+      bool is_corner = false;
+      oFragColor = draw_dashed_edge(is_corner);
       break;
+    }
   }
 }
 

  vec4 target_colored_rect = drawRect(position, target_rect, black);

  return mix(white, target_colored_rect, target_colored_rect.a);

  //vec4 white = vec4(1.0, 1.0, 1.0, 1.0);
  //return white;
}

void draw_dotted_border(void) {

    case PST_TOP_RIGHT:
    case PST_BOTTOM_LEFT:
    case PST_BOTTOM_RIGHT:
    {
      // TODO: Fix for corners with a border-radius
      oFragColor = draw_dotted_edge();
      break;
    }
    case PST_BOTTOM:
    case PST_TOP:
    case PST_LEFT:
    case PST_RIGHT:
    {
      oFragColor = draw_dotted_edge();
      break;
    }
  }
}

