# Path: fofix/core/Language.py
# def getAvailableLanguages():


import logging
import os
import struct
import pygame
            import win32api
            import win32gui
            import win32con
            import win32gui
            import win32con
            import atexit
from PIL import Image
from OpenGL.GL import *
from OpenGL.GL.ARB.multisample import *
from fofix.core.Language import _
    def toggleFullscreen(self):
        assert self.screen

        return pygame.display.toggle_fullscreen()

    def flip(self):
        pygame.display.flip()

    def getVideoModes(self):
        return pygame.display.list_modes()

    #stump
    def disableScreensaver(self):
        if os.name == 'nt':
            # See the DisableScreensaver and RestoreScreensaver functions in
            # modules/video_output/msw/common.c in the source code for VLC.

            log.debug('Disabling screensaver.')

            old_lowpowertimeout = win32gui.SystemParametersInfo(win32con.SPI_GETLOWPOWERTIMEOUT)
            if old_lowpowertimeout != 0:
                atexit.register(lambda: win32gui.SystemParametersInfo(win32con.SPI_SETLOWPOWERTIMEOUT, old_lowpowertimeout))
                win32gui.SystemParametersInfo(win32con.SPI_SETLOWPOWERTIMEOUT, 0)

            old_powerofftimeout = win32gui.SystemParametersInfo(win32con.SPI_GETPOWEROFFTIMEOUT)
            if old_powerofftimeout != 0:
                atexit.register(lambda: win32gui.SystemParametersInfo(win32con.SPI_SETPOWEROFFTIMEOUT, old_powerofftimeout))
                win32gui.SystemParametersInfo(win32con.SPI_SETPOWEROFFTIMEOUT, 0)

            old_screensavetimeout = win32gui.SystemParametersInfo(win32con.SPI_GETSCREENSAVETIMEOUT)

# Path: fofix/core/Language.py
# def getAvailableLanguages():


# Path: fofix/core/Video.py
import logging
import os
import struct
import pygame
            import win32api
            import win32gui
            import win32con
            import win32gui
            import win32con
            import atexit
from PIL import Image
from OpenGL.GL import *
from OpenGL.GL.ARB.multisample import *
from fofix.core.Language import _

    def toggleFullscreen(self):
        assert self.screen

        return pygame.display.toggle_fullscreen()

    def flip(self):
        pygame.display.flip()

    def getVideoModes(self):
        return pygame.display.list_modes()

    #stump
    def disableScreensaver(self):
        if os.name == 'nt':
            # See the DisableScreensaver and RestoreScreensaver functions in
            # modules/video_output/msw/common.c in the source code for VLC.

            log.debug('Disabling screensaver.')

            old_lowpowertimeout = win32gui.SystemParametersInfo(win32con.SPI_GETLOWPOWERTIMEOUT)
            if old_lowpowertimeout != 0:
                atexit.register(lambda: win32gui.SystemParametersInfo(win32con.SPI_SETLOWPOWERTIMEOUT, old_lowpowertimeout))
                win32gui.SystemParametersInfo(win32con.SPI_SETLOWPOWERTIMEOUT, 0)

            old_powerofftimeout = win32gui.SystemParametersInfo(win32con.SPI_GETPOWEROFFTIMEOUT)
            if old_powerofftimeout != 0:
                atexit.register(lambda: win32gui.SystemParametersInfo(win32con.SPI_SETPOWEROFFTIMEOUT, old_powerofftimeout))
                win32gui.SystemParametersInfo(win32con.SPI_SETPOWEROFFTIMEOUT, 0)

            old_screensavetimeout = win32gui.SystemParametersInfo(win32con.SPI_GETSCREENSAVETIMEOUT)

            if old_screensavetimeout != 0: