Warning: session_start(): open(/var/lib/php/sessions/sess_cdc5pv98njnf6o961hcmcf81of, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static void paintTiledBackground_centered(Component c, Graphics g, BufferedImage image) { int w = c.getWidth(); int h = c.getHeight(); int tw = image.getWidth(), th = image.getHeight(); // center of tile should be in center of image int shiftX = (w-tw)/2, shiftY = (h-th)/2; int y1 = mod(shiftY-1, th)-th+1; for (int x = mod(shiftX-1, tw)-tw+1; x < w; x += tw) for (int y = y1; y < h; y += th) g.drawImage(image, x, y, c); }