v-sync and h-sync timings, but not together

horizontal and vertical sync work individually but not togther