File: gcurses.c

package info (click to toggle)
bombardier 0.8.3%2Bnmu1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 216 kB
  • ctags: 74
  • sloc: ansic: 829; makefile: 61; sh: 50
file content (16 lines) | stat: -rw-r--r-- 271 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Bombardier */
/* The GNU Bombing utility */
/* Copyright (C) 2001, 2009 Gergely Risko */
/* Can be licensed under the terms of GPL v3 or above */

#include "bombardier.h"

int gx(int x)
{
    return x+(maxx-WIDTH)/2;
}

int gy(int y)
{
    return y+(maxy-HEIGHT)/2;
}